mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-09 11:50:20 -06:00
Word treats the end-of-cell mark as a paragraph in the default (Normal) style, so a cell's last paragraph with contextual spacing in that style (or in an undefined style, formatted as Normal) loses its space after, as beside any same-style neighbour; one in another style keeps it. `layout_box` kept the space after of every last cell paragraph except automatic spacing, so the row grew by it and the text below the table sat that much lower (docxide-pdf cell-end-text-context, cell-end-empty-context: 8 pt). A middle or bottom cell of a row split across pages lines up with the other cells' kept text, which `align_in_part` counted with its full space after; it now stops at the cell's content end, so a dropped space after (contextual or automatic) no longer pushes the aligned cell down. Co-authored-by: Naxvog <4963183+naxvog@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>