aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-01-28 08:52:54 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-01-28 08:52:54 -0800
commitf90e18b95504c4a684f317acc6592c26b76c547b (patch)
tree53736d98da4095b0b2cdab81e02ce8b5b1f4cf30 /src/Text/Pandoc/Readers
parent382564ed9e62a42ec03650d178f48552df0071b7 (diff)
downloadpandoc-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.hs1
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...