diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-28 08:52:54 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-28 08:52:54 -0800 |
commit | f90e18b95504c4a684f317acc6592c26b76c547b (patch) | |
tree | 53736d98da4095b0b2cdab81e02ce8b5b1f4cf30 /src/Text/Pandoc/Readers | |
parent | 382564ed9e62a42ec03650d178f48552df0071b7 (diff) | |
download | pandoc-f90e18b95504c4a684f317acc6592c26b76c547b.tar.gz |
RST reader: Skip blank space at beginning.
Resolves Debian Bug #611328.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 1 |
1 files changed, 1 insertions, 0 deletions
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... |