aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-23 17:29:26 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-23 17:29:26 +0100
commitffd699385a9ea040e6859b7b882b4190597a7f0c (patch)
tree0cbffa036956793cb83b53de4a5a2f825d7249e6 /src/Text/Pandoc
parent6c07e431129c27bf6e541329dc140aaa23e7ac79 (diff)
downloadpandoc-ffd699385a9ea040e6859b7b882b4190597a7f0c.tar.gz
Ms writer: improved definition lists.
Use standard .IP macro. Also properly escape ".
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/Ms.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Ms.hs b/src/Text/Pandoc/Writers/Ms.hs
index 0ca3ddea9..e326f19ab 100644
--- a/src/Text/Pandoc/Writers/Ms.hs
+++ b/src/Text/Pandoc/Writers/Ms.hs
@@ -37,7 +37,6 @@ TODO:
[ ] tight/loose list distinction
[ ] internal hyperlinks (this seems to be possible since
they exist in the groff manual PDF version)
-[ ] use a custom macro for defn lists so they're configurable
[ ] better handling of accented characters and other non-ascii
characters (e.g. curly quotes).
Note: recent versions of groff (more recent than standard
@@ -53,6 +52,8 @@ TODO:
A big advantage of gropdf: it supports the tag
\X'pdf: pdfpic file alignment width height line-length'
and also seems to support bookmarks.
+ See also the pdfroff shell script that comes with more
+ recent versions of groff.
[ ] add via groff option to PDF module
[ ] better handling of images, perhaps converting to eps when
going to PDF?
@@ -151,6 +152,7 @@ manEscapes = Map.fromList $
[ ('\160', "\\ ")
, ('\'', "\\[aq]")
, ('’', "'")
+ , ('"', "\\\"")
, ('\x2014', "\\[em]")
, ('\x2013', "\\[en]")
, ('\x2026', "\\&...")