From 009260647612238b5af964afcbeb452001f2ab0c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 10 May 2014 23:26:32 -0700 Subject: LaTeX reader: Don't error on "%foo" with no newline. --- src/Text/Pandoc/Readers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index bfafea1f6..8476c8636 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -125,7 +125,7 @@ comment :: LP () comment = do char '%' skipMany (satisfy (/='\n')) - newline + optional newline return () bgroup :: LP () -- cgit v1.2.3