Files
docx/scripts
Dolan bc3180cfa6 feat(layout): keep a cell's text from the border Word draws before two that meet, and an exact row's space between cells inside its height, as Word does (#3727)
* feat(layout): keep a cell's text from the border Word draws before two that meet, and an exact row's space between cells inside its height, as Word does

Word's PDF of word-stops-tables3 (round 26) settled what the lay3-tables
probes left open. The text of the cell before two borders of different
styles that meet is kept from the border Word draws, by Word's weights for
their styles, which are back (BT7a to BT7c); where Word draws the wider, or
the next cell's over none, the layout stops, unless the cell's margin
settles it. A row of an exact height with space between cells has its own
space and its cells' borders inside its height, and only the table's edge
outside (TS16a), and a border of 3 points above an exact row is inside it
(TS16b). Half of each outer border of 3 and 6 points is inside the room a
table sized to its text fills (BT8a, BT8b), and a merged cell's text breaks
between its rows as a paragraph's lines do (RW21), as the layout had them.
A long word in cells merged across columns still stops: Word's six more
cases (LW9a to LW9f) show the word's excess handed to the columns one by
one, each taking a share of what is left, but the shares of columns that
differ fit no rule yet. word-stops-tables4.ts probes what would settle it,
for the next batch.

* ci: rerun the checks after GitHub's code scanning upload failed
2026-10-06 21:05:19 +01:00
..