aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/LaTeX
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-11-08 11:59:13 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-11-08 11:59:13 -0800
commit9c153e3d6e877ce53e8e4f5a9c44f682b973e777 (patch)
treec0159393603cfa293163a46a0b99a482b38a497f /src/Text/Pandoc/Writers/LaTeX
parent0a45f2600ada92e2c21ee5f819e11da90202116e (diff)
downloadpandoc-9c153e3d6e877ce53e8e4f5a9c44f682b973e777.tar.gz
With `-t latex-smart`, don't generate `\ldots` from ellipsis.
Instead just use unicode ellipsis. Closes #7674.
Diffstat (limited to 'src/Text/Pandoc/Writers/LaTeX')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX/Util.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX/Util.hs b/src/Text/Pandoc/Writers/LaTeX/Util.hs
index d79326e0d..916ca1a99 100644
--- a/src/Text/Pandoc/Writers/LaTeX/Util.hs
+++ b/src/Text/Pandoc/Writers/LaTeX/Util.hs
@@ -124,7 +124,7 @@ stringToLaTeX context zs = do
'\160' -> emits "~"
'\x200B' -> emits "\\hspace{0pt}" -- zero-width space
'\x202F' -> emits "\\,"
- '\x2026' -> emitcseq "\\ldots"
+ '\x2026' | ligatures -> emitcseq "\\ldots"
'\x2018' | ligatures -> emitquote "`"
'\x2019' | ligatures -> emitquote "'"
'\x201C' | ligatures -> emitquote "``"