From 7a97369d011cdbdac52a2e0df6bcbba078852a57 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 20 Feb 2013 13:01:36 -0800 Subject: LaTeX reader: Don't emit empty paragraph. See #761. --- src/Text/Pandoc/Readers/LaTeX.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 6b7fe1829..af912c28e 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -905,10 +905,10 @@ ordered_list = do paragraph :: LP Blocks paragraph = do - x <- mconcat <$> many1 inline + x <- trimInlines . mconcat <$> many1 inline if x == mempty then return mempty - else return $ para $ trimInlines x + else return $ para x preamble :: LP Blocks preamble = mempty <$> manyTill preambleBlock beginDoc -- cgit v1.2.3