git.iko.soy/typeable/pandoc
on master help sign in
RST reader: Skip blank space at beginning.

Resolves Debian Bug #611328.

commitf90e18b95504c4a684f317acc6592c26b76c547b authorJohn MacFarlane <jgm@berkeley.edu> dateFri 28 Jan 2011, 08:52 (16 years ago) parent382564e
1 file changed+1
src/Text/Pandoc/Readers/RST.hs+1
src/Text/Pandoc/Readers/RST.hs+1
@@ -91,6 +91,7 @@ titleTransform blocks = (blocks, [])
9191
9292parseRST :: GenParser Char ParserState Pandoc
9393parseRST = do
94+ spaces -- skip blanks at beginning of file
9495 startPos <- getPosition
9596 -- go through once just to get list of reference keys and notes
9697 -- docMinusKeys is the raw document with blanks where the keys were...