git.iko.soy/typeable/pandoc
on master help sign in
Man writer: don't escape " as \".

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1399 788f1e2b-df1e-0410-8736-df70ead52e1b

commit2fd7da07d4f044364609f42d8b8f799340960923 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 10 Aug 2008, 22:24 (18 years ago) parent7935960
2 files changed+3−3
Text/Pandoc/Writers/Man.hs+1−1 tests/writer.man+2−2
Text/Pandoc/Writers/Man.hs+1−1
@@ -100,7 +100,7 @@ noteToMan opts num note = do
100100
101101-- | Association list of characters to escape.
102102manEscapes :: [(Char, String)]
103−manEscapes = [('\160', "\\ "), ('\'', "\\[aq]")] ++ backslashEscapes "\".@\\"
103+manEscapes = [('\160', "\\ "), ('\'', "\\[aq]")] ++ backslashEscapes ".@\\"
104104
105105-- | Escape special characters for Man.
106106escapeString :: String -> String
tests/writer.man+2−2
@@ -49,7 +49,7 @@ Code in a block quote:
4949.PP
5050\f[CR]
5151 sub\ status\ {
52− \ \ \ \ print\ \"working\";
52+ \ \ \ \ print\ "working";
5353 }
5454\f[]
5555.PP
@@ -83,7 +83,7 @@ Code:
8383 ----\ (should\ be\ four\ hyphens)
8484
8585 sub\ status\ {
86− \ \ \ \ print\ \"working\";
86+ \ \ \ \ print\ "working";
8787 }
8888
8989 this\ code\ block\ is\ indented\ by\ one\ tab