diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-28 12:30:33 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-28 12:30:33 -0800 |
commit | 7f5130709b6b863cbf2861890292c5662ba6994f (patch) | |
tree | c2898301dfc2842e8a66ea3a5ef938e45227eab1 /src/Text | |
parent | 8c435578d63b4723789b5d03d36c8da19968af8e (diff) | |
download | pandoc-7f5130709b6b863cbf2861890292c5662ba6994f.tar.gz |
RST reader: skip blanklines at beginning, not all leading spaces.
If you skip all spaces, it becomes impossible to start with
a blockquote.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 65c239aa5..32fae5ee7 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -91,7 +91,7 @@ titleTransform blocks = (blocks, []) parseRST :: GenParser Char ParserState Pandoc parseRST = do - spaces -- skip blanks at beginning of file + optional blanklines -- skip blank lines 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... |