aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-24 08:59:10 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-24 08:59:10 -0700
commit3a9f807052f0f8af6e281a9a8dbd0bf809ea55db (patch)
tree38590b5ab662a8b5fefea81df205f17a8d1b4d46 /src/Text
parentbac25e82d3f588119eab4219322691c8a8fb0847 (diff)
downloadpandoc-3a9f807052f0f8af6e281a9a8dbd0bf809ea55db.tar.gz
GroffChar: added @ to list of standard escapes.
Because we use it as a delimiter for tables (in man) and for math (in ms).
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/GroffChar.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/GroffChar.hs b/src/Text/Pandoc/GroffChar.hs
index 6d2eff98b..3f78939c4 100644
--- a/src/Text/Pandoc/GroffChar.hs
+++ b/src/Text/Pandoc/GroffChar.hs
@@ -37,7 +37,8 @@ module Text.Pandoc.GroffChar (
) where
import Prelude
--- | These are the escapes specifically mentioned in groff_man(7).
+-- | These are the escapes specifically mentioned in groff_man(7),
+-- plus @ and ellipsis.
standardEscapes :: [(Char, String)]
standardEscapes =
[ ('\160', "\\ ")
@@ -54,6 +55,7 @@ standardEscapes =
, ('~', "\\[ti]")
, ('-', "\\-") -- minus; - will be interpreted as hyphen U+2010
, ('\\', "\\[rs]")
+ , ('@', "\\[at]") -- because we use @ as a table and math delimiter
, ('\x2026', "\\&...") -- because u2026 doesn't render on tty
]