git.iko.soy/typeable/pandoc
on master help sign in
Man writer: Use integral n measures instead of fractional i

measures. Calculate on basis of a 70 character line, since the default is 78 but the table will appear indented 8 spaces in standard man output. git-svn-id: https://pandoc.googlecode.com/svn/trunk@637 788f1e2b-df1e-0410-8736-df70ead52e1b

commit3e6184763e67dd2f74c3578745c098090d349d80 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 7 Jul 2007, 22:18 (19 years ago) parentf82b1f8
1 file changed+2−1
src/Text/Pandoc/Writers/Man.hs+2−1
src/Text/Pandoc/Writers/Man.hs+2−1
@@ -161,7 +161,8 @@ blockToMan opts (Table caption alignments widths headers rows) =
161161 in do
162162 caption' <- inlineListToMan opts caption
163163 modify (\(notes, preprocessors) -> (notes, "t":preprocessors))
164− let iwidths = map (printf "w(%.2fi)" . (6.5 *)) widths -- 6.5i default width
164+ let iwidths = map (printf "w(%0.2fn)" . (70 *)) widths
165+ -- 78n default width - 8n indent = 70n
165166 let coldescriptions = text $ joinWithSep " "
166167 (zipWith (\align width -> aligncode align ++ width)
167168 alignments iwidths) ++ "."