git.iko.soy/typeable/pandoc
on master help sign in
Fixed bug in LaTeX string escaper (with ~).
commit53e6bf36a976e191cf1835f7fd440fba529ae741 authorJohn MacFarlane <fiddlosopher@gmail.com> dateFri 2 Mar 2012, 07:49 (15 years ago) parentc5fb21d
1 file changed+1−1
src/Text/Pandoc/Writers/LaTeX.hs+1−1
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -183,7 +183,7 @@ stringToLaTeX isUrl (x:xs) =
183183 '-' -> case xs of -- prevent adjacent hyphens from forming ligatures
184184 ('-':_) -> "-{}" ++ rest
185185 _ -> '-' : rest
186− '~' | not isUrl -> "\\ensuremath{\\sim}"
186+ '~' | not isUrl -> "\\ensuremath{\\sim}" ++ rest
187187 '^' -> "\\^{}" ++ rest
188188 '\\' -> "\\textbackslash{}" ++ rest
189189 '€' -> "\\euro{}" ++ rest