Merge pull request #1145 from wilx/en-dash-ligature-avoidance
Use \/ to avoid en-dash ligature instead of -{}-.
commitc5dc801498afff20dc3f1e2673e6647333d77a2b
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 17 Feb 2014, 16:03 (13 years ago)
parentf6a020a1ba8066
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -206,7 +206,7 @@ stringToLaTeX ctx (x:xs) = do
206206 '_' | not isUrl -> "\\_" ++ rest
207207 '#' -> "\\#" ++ rest
208208 '-' -> case xs of -- prevent adjacent hyphens from forming ligatures
209− ('-':_) -> "-{}" ++ rest
209+ ('-':_) -> "-\\/" ++ rest
210210 _ -> '-' : rest
211211 '~' | not isUrl -> "\\textasciitilde{}" ++ rest
212212 '^' -> "\\^{}" ++ rest