git.iko.soy/typeable/pandoc
on master help sign in
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

commit63dfc3abf274bc4fb85b43c1e1a74e9baf18bc77 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 28 Oct 2007, 23:30 (19 years ago) parent27ea29a
2 files changed+5−1
debian/changelog+2 src/Text/Pandoc/Readers/LaTeX.hs+3−1
debian/changelog+2
@@ -40,6 +40,8 @@ pandoc (0.45) unstable; urgency=low
4040 + Parse fields associated with '.. image::' blocks, and use 'alt'
4141 field, if given, for image alt and title attributes.
4242
43+ * LaTeX reader: Modified specialChar so that '"' characters are parsed.
44+
4345 * HTML writer: Don't produce HTML for table of contents if there are
4446 no headers. (This would be an empty list, which is invalid XHTML.)
4547
src/Text/Pandoc/Readers/LaTeX.hs+3−1
@@ -494,7 +494,7 @@ escapedChar = do
494494-- ignore standalone, nonescaped special characters
495495unescapedChar = oneOf "`$^&_#{}|<>" >> return (Str "")
496496
497−specialChar = choice [ backslash, tilde, caret, bar, lt, gt ]
497+specialChar = choice [ backslash, tilde, caret, bar, lt, gt, doubleQuote ]
498498
499499backslash = try (string "\\textbackslash") >> return (Str "\\")
500500
@@ -508,6 +508,8 @@ lt = try (string "\\textless") >> return (Str "<")
508508
509509gt = try (string "\\textgreater") >> return (Str ">")
510510
511+doubleQuote = char '"' >> return (Str "\"")
512+
511513code = code1 <|> code2
512514
513515code1 = try $ do