@@ -352,7 +352,7 @@ singleHeader' :: PandocMonad m => RSTParser m (Inlines, Char)
352singleHeader' = try $ do
352singleHeader' = try $ do
353 notFollowedBy' whitespace
353 notFollowedBy' whitespace
354 lookAhead $ anyLine >> oneOf underlineChars
354 lookAhead $ anyLine >> oneOf underlineChars
355− txt <- trimInlines . mconcat <$> many1 (do {notFollowedBy newline; inline})
355+ txt <- trimInlines . mconcat <$> many1 (notFollowedBy blankline >> inline)
356 pos <- getPosition
356 pos <- getPosition
357 let len = sourceColumn pos - 1
357 let len = sourceColumn pos - 1
358 blankline
358 blankline