mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-06 18:51:26 +00:00
Six features of LibreOffice documents were lost on open and save. A two-page document came back as one page, because the page break after a paragraph was dropped. Now read and written: - a page break after a paragraph (`fo:break-after="page"`), as a page break before the next paragraph, as Word has it; - lines kept together (`fo:keep-together`); - widow and orphan control (`fo:widows`/`fo:orphans`): on with any line count, off with none; - hyphenation (`fo:hyphenate`): a paragraph's in ODF, the document's in WordCraft. A document with a hyphenated paragraph hyphenates, and its other paragraphs opt out; - a table's alignment and width (`table:align`, `style:rel-width`); - its rows' heights (`style:row-height` exact, `style:min-row-height` at least). Flow model: `FTable::extra` (alignment, width, row heights), filled by formats that keep them. A LibreOffice document with all of these round-trips at 573 px difference instead of 4,407, keeps its two pages, and validates against the ODF 1.3 schema. No other test document changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GBVQLyDnrG8Tn1yDQcUabC