mirror of
https://github.com/dolanmiu/docx.git
synced 2026-11-30 16:47:55 +01:00
* fix(layout): keep lines as tall as Word has them, unrounded, and break table rows as Word does Word doesn't round the height of a line: Calibri 11 is 268.55 twips, where LibreOffice and docx/layout had 269. The width tables keep each font's height unrounded, Cambria's as Word's 2401/2048 of an em, and lines are no longer rounded to whole twips. With exact heights, tables-across-pages showed that docx/layout broke table rows across pages differently from Word. word-line-heights.docx, saved from Word, settled how: where a table breaks across pages, the last of it on the page needs room for the table's bottom border; a paragraph that ends in a cell's part on the page needs room for its space after; and a row of an at-least height only breaks where the page has room for its height, which takes out the stop at a row of a set height across pages. * docs(layout): say a line is as tall as Word makes it only for one font Word's heights were checked for lines in one font. A line in several fonts is as tall as its tallest, which hasn't been checked in Word, so the docs say what the layout does.