mirror of
https://github.com/dolanmiu/docx.git
synced 2026-11-30 16:47:55 +01:00
* feat(layout): widen a column for a word longer than its cells give it, as Word does In a table whose cells all have widths, Word makes a column as wide as its longest word, grows a table with no width of its own up to the room, keeps the width of one with its own, and narrows the other columns toward their longest words, each by its share of the width they can give up. Probed in scripts/layout-probes/word-long-words.ts. A word longer than the table can make room for, a long word in a table wider than its cells, and one in a table with cells merged across columns still stop the layout. * chore(layout): keep Word's PDF of word-long-words beside it, read by word-autofit.py * docs(layout): list word-long-words among the layout probes * fix(layout): lay out a paragraph kept with a table whose columns can't be widened before stopping there The lookahead for a paragraph kept with the next sized the table, which threw when Word's widening of it isn't known, so the layout stopped before placing the paragraph and its bookmark went without a page number. It now stops only where the table is placed, as it does for a table it can't read.