mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-22 05:53:17 -06:00
* Tables: split the paragraph that starts a cell's part of a page where its lines fall A row split across pages whose cell continued with a paragraph of two or three lines, of which only the first (or two) fit, kept nothing on the page: the orphan/widow rule moved the paragraph on whole, but it already started the page. The row was then placed whole and ran off the bottom. Word splits such a paragraph where the lines fall (a lone first line stays; three lines with room for two split two and one; a continuation's lone line stays). A paragraph below other content of its cell, and a row starting below other content of a page, keep the rule. Part of #6823 (phase 1: not built or run yet). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Tables: a can't split row taller than a page splits at the page's end; more Word-measured cases A can't split row (not an exact one) taller than a page now moves to a new page when it starts below text and splits where the page ends, as Word does, instead of running off the page. The tests now cover nested tables, a repeated header row, text lines, rows with several paragraphs and the exact configurations measured in Word. The earlier note that Word keeps two and one below other content was a misreading of a run without compatibility mode 15 and is removed. Part of #6823 (phase 1: not built or run yet). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Tables: review fixes for the split-row work The new test module defines its own lay helper; only text in the flow decides which paragraph starts a cell's part of a page, so a floating picture above it no longer keeps the old orphan rule; a can't split row only splits when it is taller than the room; a stale test comment is updated; tests for a floating picture and a row that fits a page. Part of #6823. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Tables: a test for a floating picture above the first paragraph; rustfmt Floats are placed with the first piece of their paragraph, so the test puts the picture on the table's first page. Without the in-flow-only rule it fails. Part of #6823. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * 6823: Document split-row limits * 6823: Clarify widow control in split rows --------- Co-authored-by: vangel76 <271991477+vangel76@users.noreply.github.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Martin Ball <98639962+benandez@users.noreply.github.com>