aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-18 23:47:58 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-18 23:54:13 -0700
commit7d5b25d6d65306b1f2eb77417a9010951d1e17a8 (patch)
tree0c4dfa0086d888684042f0db4ea17be00ed5b686 /src/Text
parent00b0c4a57b668236060161139d0ae1c42e6555b7 (diff)
downloadpandoc-7d5b25d6d65306b1f2eb77417a9010951d1e17a8.tar.gz
GroffChar: fixed interpretation of `\-`.
It is the ascii - sign, not the unicode hyphen.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/GroffChar.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/GroffChar.hs b/src/Text/Pandoc/GroffChar.hs
index 8664c627f..97ff0b100 100644
--- a/src/Text/Pandoc/GroffChar.hs
+++ b/src/Text/Pandoc/GroffChar.hs
@@ -48,8 +48,8 @@ essentialEscapes = Map.fromList
, ('^', "\\[ha]")
, ('@', "\\[at]")
, ('\\', "\\[rs]")
+ , ('-', "\\-") -- minus; - will be interpreted as hyphen U+2010
, ('\x2026', "\\&...") -- because u2026 doesn't render on tty
- , ('\x2212', "\\-") -- minus
]
characterCodes :: [(Char, String)]