aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-17 17:39:42 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-17 17:39:42 -0700
commit24f388e1a7ea4a6affad232035526191e5df961d (patch)
treeabb0fa55a36ae0bbecfb9191ef1082e4826455bc
parentebdb2deb0d1d71cf1d7f490fe0e2938d2d7f4d74 (diff)
downloadpandoc-24f388e1a7ea4a6affad232035526191e5df961d.tar.gz
man/ms writers: use `\[at]` for escaped `@`.
-rw-r--r--src/Text/Pandoc/Writers/Groff.hs2
-rw-r--r--test/writer.ms2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/Groff.hs b/src/Text/Pandoc/Writers/Groff.hs
index aac76060e..cb7252726 100644
--- a/src/Text/Pandoc/Writers/Groff.hs
+++ b/src/Text/Pandoc/Writers/Groff.hs
@@ -97,7 +97,7 @@ groffEscapes = Map.fromList
, ('\x2026', "\\&...")
, ('~', "\\[ti]")
, ('^', "\\[ha]")
- , ('@', "\\@")
+ , ('@', "\\[at]")
, ('\\', "\\\\")
]
diff --git a/test/writer.ms b/test/writer.ms
index 8480f5520..c81127721 100644
--- a/test/writer.ms
+++ b/test/writer.ms
@@ -925,7 +925,7 @@ It should.
.LP
An e-mail address: \c
.pdfhref W -D "mailto:nobody%40nowhere.net" -A "\c" \
- -- "nobody\@nowhere.net"
+ -- "nobody\[at]nowhere.net"
\&
.RS
.LP