From 63dfc3abf274bc4fb85b43c1e1a74e9baf18bc77 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sun, 28 Oct 2007 23:30:29 +0000 Subject: Modified specialChar in LaTeX reader so that '"' characters are parsed and do not cause an error. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1056 788f1e2b-df1e-0410-8736-df70ead52e1b --- src/Text/Pandoc/Readers/LaTeX.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 77c642e7e..37cc2bfe4 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -494,7 +494,7 @@ escapedChar = do -- ignore standalone, nonescaped special characters unescapedChar = oneOf "`$^&_#{}|<>" >> return (Str "") -specialChar = choice [ backslash, tilde, caret, bar, lt, gt ] +specialChar = choice [ backslash, tilde, caret, bar, lt, gt, doubleQuote ] backslash = try (string "\\textbackslash") >> return (Str "\\") @@ -508,6 +508,8 @@ lt = try (string "\\textless") >> return (Str "<") gt = try (string "\\textgreater") >> return (Str ">") +doubleQuote = char '"' >> return (Str "\"") + code = code1 <|> code2 code1 = try $ do -- cgit v1.2.3