aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-09-18 13:24:04 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-18 13:27:02 -0700
commitc42542428c906947656f3cd821c8d3334e66ffdd (patch)
tree3719fc787578b012d2602a4abb225f172f1d1a97 /src/Text/Pandoc/Writers
parentebfa7d61f82ed4b7e0afa0a91312a5bbdefadfb6 (diff)
downloadpandoc-c42542428c906947656f3cd821c8d3334e66ffdd.tar.gz
LaTeX writer: use `\hspace{0pt}` for 0-width space U+200B.
Closes #5756.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 2e340b411..2ea26344a 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -375,6 +375,7 @@ stringToLaTeX context zs = do
']' -> emits "{]}" -- optional arguments
'\'' | ctx == CodeString -> emitcseq "\\textquotesingle"
'\160' -> emits "~"
+ '\x200B' -> emits "\\hspace{0pt}" -- zero-width space
'\x202F' -> emits "\\,"
'\x2026' -> emitcseq "\\ldots"
'\x2018' | ligatures -> emitquote "`"