git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: Don't emit empty paragraph.

See #761.

commit7a97369d011cdbdac52a2e0df6bcbba078852a57 authorJohn MacFarlane <fiddlosopher@gmail.com> dateWed 20 Feb 2013, 13:01 (14 years ago) parent3f2dd98
1 file changed+2−2
src/Text/Pandoc/Readers/LaTeX.hs+2−2
src/Text/Pandoc/Readers/LaTeX.hs+2−2
@@ -905,10 +905,10 @@ ordered_list = do
905905
906906paragraph :: LP Blocks
907907paragraph = do
908− x <- mconcat <$> many1 inline
908+ x <- trimInlines . mconcat <$> many1 inline
909909 if x == mempty
910910 then return mempty
911− else return $ para $ trimInlines x
911+ else return $ para x
912912
913913preamble :: LP Blocks
914914preamble = mempty <$> manyTill preambleBlock beginDoc