git.iko.soy/typeable/pandoc
on master help sign in
Man writer: Escape - as \-.
5d3b295John MacFarlane
src/Text/Pandoc/Writers/Man.hs+1−1
@@ -105,7 +105,7 @@ manEscapes = [ ('\160', "\\ ")
105 , ('\x2014', "\\[em]")
105 , ('\x2014', "\\[em]")
106 , ('\x2013', "\\[en]")
106 , ('\x2013', "\\[en]")
107 , ('\x2026', "\\&...")
107 , ('\x2026', "\\&...")
108− ] ++ backslashEscapes "@\\"
108+ ] ++ backslashEscapes "-@\\"
109
109
110-- | Escape special characters for Man.
110-- | Escape special characters for Man.
111escapeString :: String -> String
111escapeString :: String -> String
tests/writer.man+10−10
@@ -26,7 +26,7 @@ Here's a regular paragraph.
26In Markdown 1.0.0 and earlier.
26In Markdown 1.0.0 and earlier.
27Version 8.
27Version 8.
28This line turns into a list item.
28This line turns into a list item.
29−Because a hard-wrapped line in the middle of a paragraph looked like a list
29+Because a hard\-wrapped line in the middle of a paragraph looked like a list
30item.
30item.
31.PP
31.PP
32Here's one with a bullet.
32Here's one with a bullet.
@@ -41,7 +41,7 @@ here.
41 * * * * *
41 * * * * *
42.SH Block Quotes
42.SH Block Quotes
43.PP
43.PP
44−E-mail style:
44+E\-mail style:
45.RS
45.RS
46.PP
46.PP
47This is a block quote.
47This is a block quote.
@@ -87,7 +87,7 @@ Code:
87.IP
87.IP
88.nf
88.nf
89\f[C]
89\f[C]
90−----\ (should\ be\ four\ hyphens)
90+\-\-\-\-\ (should\ be\ four\ hyphens)
91
91
92sub\ status\ {
92sub\ status\ {
93\ \ \ \ print\ "working";
93\ \ \ \ print\ "working";
@@ -489,7 +489,7 @@ Code block:
489.IP
489.IP
490.nf
490.nf
491\f[C]
491\f[C]
492−<!--\ Comment\ -->
492+<!\-\-\ Comment\ \-\->
493\f[]
493\f[]
494.fi
494.fi
495.PP
495.PP
@@ -568,11 +568,11 @@ Ellipses\&...and\&...and\&....
568.IP \[bu] 2
568.IP \[bu] 2
569223
569223
570.IP \[bu] 2
570.IP \[bu] 2
571−\f[I]p\f[]-Tree
571+\f[I]p\f[]\-Tree
572.IP \[bu] 2
572.IP \[bu] 2
573Here's some display math:
573Here's some display math:
574.RS
574.RS
575−$\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}$
575+$\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)\-f(x)}{h}$
576.RE
576.RE
577.IP \[bu] 2
577.IP \[bu] 2
578Here's one that has a line break in it:
578Here's one that has a line break in it:
@@ -637,7 +637,7 @@ Left paren: (
637.PP
637.PP
638Right paren: )
638Right paren: )
639.PP
639.PP
640−Greater-than: >
640+Greater\-than: >
641.PP
641.PP
642Hash: #
642Hash: #
643.PP
643.PP
@@ -647,7 +647,7 @@ Bang: !
647.PP
647.PP
648Plus: +
648Plus: +
649.PP
649.PP
650−Minus: -
650+Minus: \-
651.PP
651.PP
652 * * * * *
652 * * * * *
653.SH Links
653.SH Links
@@ -718,13 +718,13 @@ In a list?
718.IP \[bu] 2
718.IP \[bu] 2
719It should.
719It should.
720.PP
720.PP
721−An e-mail address: <nobody@nowhere.net>
721+An e\-mail address: <nobody@nowhere.net>
722.RS
722.RS
723.PP
723.PP
724Blockquoted: <http://example.com/>
724Blockquoted: <http://example.com/>
725.RE
725.RE
726.PP
726.PP
727−Auto-links should not occur here: \f[C]<http://example.com/>\f[]
727+Auto\-links should not occur here: \f[C]<http://example.com/>\f[]
728.IP
728.IP
729.nf
729.nf
730\f[C]
730\f[C]