LaTeX reader: Don't emit empty paragraph.

See #761.
This commit is contained in:
John MacFarlane 2013-02-20 13:01:36 -08:00
parent 3f2dd98f45
commit 7a97369d01

View file

@ -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