From f90e18b95504c4a684f317acc6592c26b76c547b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 28 Jan 2011 08:52:54 -0800 Subject: RST reader: Skip blank space at beginning. Resolves Debian Bug #611328. --- src/Text/Pandoc/Readers/RST.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc/Readers') diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 582766d38..65c239aa5 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -91,6 +91,7 @@ titleTransform blocks = (blocks, []) parseRST :: GenParser Char ParserState Pandoc parseRST = do + spaces -- skip blanks 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