diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-03-24 16:03:46 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-03-24 16:03:46 -0700 |
commit | d7f2b5d0f5e076be78bfad06f36447effee33358 (patch) | |
tree | 921d25957966b25e6ed5d40443f07192e5811814 /src/Text/Pandoc | |
parent | 9352750cb24b672e869e7351df9875d5fa8bf7f9 (diff) | |
download | pandoc-d7f2b5d0f5e076be78bfad06f36447effee33358.tar.gz |
RST reader: '\ ' is null, not escaped space.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 456b23ce8..759d9802e 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -780,7 +780,9 @@ hyphens = do escapedChar :: GenParser Char st Inline escapedChar = do c <- escaped anyChar - return $ Str [c] + return $ if c == ' ' -- '\ ' is null in RST + then Str "" + else Str [c] symbol :: GenParser Char ParserState Inline symbol = do |