From 7f5130709b6b863cbf2861890292c5662ba6994f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 28 Jan 2011 12:30:33 -0800 Subject: RST reader: skip blanklines at beginning, not all leading spaces. If you skip all spaces, it becomes impossible to start with a blockquote. --- src/Text/Pandoc/Readers/RST.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 65c239aa5..32fae5ee7 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -91,7 +91,7 @@ titleTransform blocks = (blocks, []) parseRST :: GenParser Char ParserState Pandoc parseRST = do - spaces -- skip blanks at beginning of file + optional blanklines -- skip blank lines at beginning of file startPos <- getPosition -- go through once just to get list of reference keys and notes -- docMinusKeys is the raw document with blanks where the keys were... -- cgit v1.2.3