From d7f2b5d0f5e076be78bfad06f36447effee33358 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 24 Mar 2012 16:03:46 -0700 Subject: RST reader: '\ ' is null, not escaped space. --- src/Text/Pandoc/Readers/RST.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Text') 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 -- cgit v1.2.3