Simplify row width calculation.
This commit is contained in:
parent
9f3c34841b
commit
753e47194c
1 changed files with 2 additions and 2 deletions
|
@ -596,8 +596,8 @@ blockToOpenXML opts (Table caption aligns widths headers rows) = do
|
|||
else contents
|
||||
let mkrow border cells = mknode "w:tr" [] $ map (mkcell border) cells
|
||||
let textwidth = 7920 -- 5.5 in in twips, 1/20 pt
|
||||
let fullrow = 5000
|
||||
let rowwidth = sum $ map (fullrow *) widths
|
||||
let fullrow = 5000 -- 100% specified in pct
|
||||
let rowwidth = fullrow * sum widths
|
||||
let mkgridcol w = mknode "w:gridCol"
|
||||
[("w:w", show $ (floor (textwidth * w) :: Integer))] ()
|
||||
return $
|
||||
|
|
Loading…
Add table
Reference in a new issue