Small simplification of blank parser in LaTeX reader.
commita388024a576d969be11efd13401d95a1a5f55577
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateWed 11 Apr 2012, 08:52 (15 years ago)
parenta438827
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -198,7 +198,7 @@ inlines = mconcat <$> many (notFollowedBy (char '}') *> inline)
198198
199199block :: LP Blocks
200200block = (mempty <$ comment)
201− <|> (mempty <$ ((spaceChar <|> blankline) *> spaces))
201+ <|> (mempty <$ ((spaceChar <|> newline) *> spaces))
202202 <|> environment
203203 <|> mempty <$ macro -- TODO improve macros, make them work everywhere
204204 <|> blockCommand