git.iko.soy/typeable/pandoc
on master help sign in
Man writer:

+ Make sure to include "" if no section is specified in a man page TH line. + Updated man writer tests. git-svn-id: https://pandoc.googlecode.com/svn/trunk@758 788f1e2b-df1e-0410-8736-df70ead52e1b

commit9f38f9d0391c901adddfc0eb14f114c9b6716e58 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 22 Jul 2007, 16:17 (19 years ago) parent062cdfe
2 files changed+4−4
src/Text/Pandoc/Writers/Man.hs+2−2 tests/writer.man+2−2
src/Text/Pandoc/Writers/Man.hs+2−2
@@ -73,8 +73,8 @@ metaToMan options (Meta title authors date) = do
7373 let (cmdName, rest) = break (== ' ') $ render titleText
7474 let (title', section) = case reverse cmdName of
7575 (')':d:'(':xs) | d `elem` ['0'..'9'] ->
76− (text (reverse xs), text [d])
77− xs -> (text (reverse xs), empty)
76+ (text (reverse xs), char d)
77+ xs -> (text (reverse xs), doubleQuotes empty)
7878 let extras = map (doubleQuotes . text . removeLeadingTrailingSpace) $
7979 splitBy '|' rest
8080 let head = (text ".TH") <+> title' <+> section <+>
tests/writer.man+2−2
@@ -1,4 +1,4 @@
1−.TH "Pandoc Test Suite" "" "July 17, 2006"
1+.TH Pandoc "" "July 17, 2006" "Test Suite"
22.PP
33This is a set of tests for pandoc\. Most of them are adapted from
44John Gruber's markdown test suite\.
@@ -747,4 +747,4 @@ In quote\.
747747.PP
748748In list\.
749749.SH AUTHORS
750−John MacFarlane, Anonymous
750+John MacFarlane, Anonymous