Use integral values for w:tblW in docx.

Cloess #7141.
This commit is contained in:
John MacFarlane 2021-03-13 12:05:52 -08:00
parent 9bd36b03e9
commit eed18d231c
4 changed files with 1 additions and 1 deletions

View file

@ -1031,7 +1031,7 @@ blockToOpenXML' opts (Table _ blkCapt specs thead tbody tfoot) = do
map mkcell cells
let textwidth = 7920 -- 5.5 in in twips, 1/20 pt
let fullrow = 5000 -- 100% specified in pct
let rowwidth = fullrow * sum widths
let (rowwidth :: Int) = round $ fullrow * sum widths
let mkgridcol w = mknode "w:gridCol"
[("w:w", tshow (floor (textwidth * w) :: Integer))] ()
let hasHeader = not $ all null headers

Binary file not shown.

Binary file not shown.