aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-08-18 10:27:07 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-08-18 10:29:15 -0700
commit5d3b2955681d84458537e3bea7b004262960d374 (patch)
tree9df1e9b8585dc8730d25d07277b8dea0b3a94a8e /src/Text
parent454b8ebb966710edd9bcc2c61733515491026baf (diff)
downloadpandoc-5d3b2955681d84458537e3bea7b004262960d374.tar.gz
Man writer: Escape - as \-.
Unescaped -'s become hyphens, while \-'s are left as ascii minus signs. That is preferable for use with command-line options. See http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html. Thanks to Andrea Bolognani for bringing the issue to our attention.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/Man.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Man.hs b/src/Text/Pandoc/Writers/Man.hs
index b3a4656a3..bececde25 100644
--- a/src/Text/Pandoc/Writers/Man.hs
+++ b/src/Text/Pandoc/Writers/Man.hs
@@ -105,7 +105,7 @@ manEscapes = [ ('\160', "\\ ")
, ('\x2014', "\\[em]")
, ('\x2013', "\\[en]")
, ('\x2026', "\\&...")
- ] ++ backslashEscapes "@\\"
+ ] ++ backslashEscapes "-@\\"
-- | Escape special characters for Man.
escapeString :: String -> String