aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-02-17 16:03:27 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-02-17 16:03:27 -0800
commitc5dc801498afff20dc3f1e2673e6647333d77a2b (patch)
treedcefed376beafe8ffd46c3f7f9a1ab6c7504c848 /src/Text
parentf6a020a906e5b03defa9924819b7f8cf2f626277 (diff)
parent1ba8066f67d1f8624e679e28fd800e6ade2a9511 (diff)
downloadpandoc-c5dc801498afff20dc3f1e2673e6647333d77a2b.tar.gz
Merge pull request #1145 from wilx/en-dash-ligature-avoidance
Use \/ to avoid en-dash ligature instead of -{}-.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index a76d6d82b..b2eff4490 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -206,7 +206,7 @@ stringToLaTeX ctx (x:xs) = do
'_' | not isUrl -> "\\_" ++ rest
'#' -> "\\#" ++ rest
'-' -> case xs of -- prevent adjacent hyphens from forming ligatures
- ('-':_) -> "-{}" ++ rest
+ ('-':_) -> "-\\/" ++ rest
_ -> '-' : rest
'~' | not isUrl -> "\\textasciitilde{}" ++ rest
'^' -> "\\^{}" ++ rest