LaTeX reader: allow blank space between braced arguments of commands.
For example
\foo
{bar}
{baz}
Closes #2592.
commit35e05449777255b624f0e8cb374e1fcdca86ba78
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 22 Dec 2015, 11:06 (11 years ago)
parent46e38d0
src/Text/Pandoc/Readers/LaTeX.hs+3−1
@@ -132,7 +132,9 @@ comment = do
132132 return ()
133133
134134bgroup :: LP ()
135−bgroup = () <$ char '{'
135+bgroup = try $ do
136+ skipMany (spaceChar <|> try (newline <* notFollowedBy blankline))
137+ () <$ char '{'
136138 <|> () <$ controlSeq "bgroup"
137139 <|> () <$ controlSeq "begingroup"
138140