Merge pull request #1145 from wilx/en-dash-ligature-avoidance
Use \/ to avoid en-dash ligature instead of -{}-.
This commit is contained in:
commit
c5dc801498
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ stringToLaTeX ctx (x:xs) = do
|
||||||
'_' | not isUrl -> "\\_" ++ rest
|
'_' | not isUrl -> "\\_" ++ rest
|
||||||
'#' -> "\\#" ++ rest
|
'#' -> "\\#" ++ rest
|
||||||
'-' -> case xs of -- prevent adjacent hyphens from forming ligatures
|
'-' -> case xs of -- prevent adjacent hyphens from forming ligatures
|
||||||
('-':_) -> "-{}" ++ rest
|
('-':_) -> "-\\/" ++ rest
|
||||||
_ -> '-' : rest
|
_ -> '-' : rest
|
||||||
'~' | not isUrl -> "\\textasciitilde{}" ++ rest
|
'~' | not isUrl -> "\\textasciitilde{}" ++ rest
|
||||||
'^' -> "\\^{}" ++ rest
|
'^' -> "\\^{}" ++ rest
|
||||||
|
|
Loading…
Add table
Reference in a new issue