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.
This commit is contained in:
parent
df1522e1eb
commit
da13ad89ce
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -138,7 +138,7 @@ Multiline table with caption:
|
|||
Here\[aq]s the caption. It may span multiple lines.
|
||||
.TS
|
||||
tab(@);
|
||||
cw(10.50n) lw(9.63n) rw(11.38n) lw(23.63n).
|
||||
cw(10.5n) lw(9.6n) rw(11.4n) lw(23.6n).
|
||||
T{
|
||||
Centered Header
|
||||
T}@T{
|
||||
|
@ -174,7 +174,7 @@ Multiline table without caption:
|
|||
.PP
|
||||
.TS
|
||||
tab(@);
|
||||
cw(10.50n) lw(9.63n) rw(11.38n) lw(23.63n).
|
||||
cw(10.5n) lw(9.6n) rw(11.4n) lw(23.6n).
|
||||
T{
|
||||
Centered Header
|
||||
T}@T{
|
||||
|
@ -244,7 +244,7 @@ Multiline table without column headers:
|
|||
.PP
|
||||
.TS
|
||||
tab(@);
|
||||
cw(10.50n) lw(9.63n) rw(11.38n) lw(23.63n).
|
||||
cw(10.5n) lw(9.6n) rw(11.4n) lw(23.6n).
|
||||
T{
|
||||
First
|
||||
T}@T{
|
||||
|
|
Loading…
Add table
Reference in a new issue