summaryrefslogtreecommitdiff
path: root/src/Text
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
parent382564ed9e62a42ec03650d178f48552df0071b7 (diff)
RST reader: Skip blank space at beginning.
Resolves Debian Bug #611328.
Diffstat (limited to 'src/Text')
-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...