From da13ad89cea34f68ef059783d49faa20e24d3c80 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 9 Apr 2013 19:56:43 -0700 Subject: Man writer: use one decimal place for column widths. This, I hope, will fix test failures on GHC 7.6 due to (presumably) different rounding or floating point multiplication. --- src/Text/Pandoc/Writers/Man.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/Man.hs b/src/Text/Pandoc/Writers/Man.hs index d5e44e71a..5541aeb3b 100644 --- a/src/Text/Pandoc/Writers/Man.hs +++ b/src/Text/Pandoc/Writers/Man.hs @@ -187,7 +187,7 @@ blockToMan opts (Table caption alignments widths headers rows) = modify $ \st -> st{ stHasTables = True } let iwidths = if all (== 0) widths then repeat "" - else map (printf "w(%0.2fn)" . (70 *)) widths + else map (printf "w(%0.1fn)" . (70 *)) widths -- 78n default width - 8n indent = 70n let coldescriptions = text $ intercalate " " (zipWith (\align width -> aligncode align ++ width) -- cgit v1.2.3