From 53e6bf36a976e191cf1835f7fd440fba529ae741 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 2 Mar 2012 07:49:55 -0800 Subject: Fixed bug in LaTeX string escaper (with ~). --- src/Text/Pandoc/Writers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index e99b20c60..088cf7910 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -183,7 +183,7 @@ stringToLaTeX isUrl (x:xs) = '-' -> case xs of -- prevent adjacent hyphens from forming ligatures ('-':_) -> "-{}" ++ rest _ -> '-' : rest - '~' | not isUrl -> "\\ensuremath{\\sim}" + '~' | not isUrl -> "\\ensuremath{\\sim}" ++ rest '^' -> "\\^{}" ++ rest '\\' -> "\\textbackslash{}" ++ rest '€' -> "\\euro{}" ++ rest -- cgit v1.2.3