Skip to content

docs(release): write the 2.5.4 notes and update the docs its fixes made stale - #1114

Merged
DemchaAV merged 15 commits into
developfrom
fix/changelog-and-docs-for-2-5-4
Dec 2, 2026
Merged

DemchaAV merged 15 commits into
developfrom
fix/changelog-and-docs-for-2-5-4

Conversation

@DemchaAV

@DemchaAV DemchaAV commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Why

develop has no v2.5.4 section in the CHANGELOG, although seventeen fixes have merged since 2.5.3 (#1103–#1112, #1116–#1122). release.yml publishes that section as the Release body. Some of the fixes can make a document fail to lay out where 2.5.3 laid it out, and others take back part of an earlier one. Readers need to learn both before they upgrade.

The same fixes left some docs out of date or incomplete. For example, docs/recipes/docx-export.md still gave 1. as letters the page drops, and tables.md and keep-together.md said nothing about how a table with rowSpan breaks.

What changed

CHANGELOG, ## v2.5.4 — Planned (the exact literal cut-release.ps1 dates at the cut)

Docs

  • Letters the DOCX report does not name (docx-export.md, backend-capability-details.md). The 1. example was wrong after fix(markdown): keep an ordered list item's number where the page reads markdown #1104. The node_js example beside it, "set regular" in a bold list, has been wrong since 2.5.3. Both are gone, and the new example is a named HTML entity.
  • Text the parser reads into nothing (docx-export.md). An empty numbered item now keeps its number, so "an empty list item" becomes "an empty bullet item".
  • Copied header rows in a split DOCX table (the same two files). The copy leaves out a drawing or a bookmark the export puts in a header row after the split is decided, and the first part keeps it. docx-export.md covered only the bookmark; fix(docx): leave a header row's drawing out of its copy in a split table #1111 adds the drawing. backend-capability-details.md covered neither.
  • The page an atomic block must fit (pagination-ordering.md, lifecycle.md, shape-as-container.md, timelines.md, and the pageMargins row of api-stability.md). It is the page the block lands on, and except in timelines.md the text says that the block's own top and bottom margins count. pagination-ordering.md also says that a multi-pass document logs a compile per pass, that only the last pass throws a refusal, and what an earlier pass that stops on another error throws.
  • Page breaks and rowSpan
    • tables.md has a new "Page breaks and row span" section, linked from the row-span section: the rule where every page has the same margins, the cut under a keepWithNext() heading (and when the heading stays where it is), and 2.5.3's cut where margins differ. It comes after the page's last claim marker, so the line numbers in knowledge/claims do not move.
    • tables.md promised v1.4 pagination to every table without repeatHeader(), in its last invariant and for repeatHeader(0). The invariant now leaves out tables with a rowSpan cell, and the repeatHeader(0) text says only that no header row repeats.
    • keep-together.md describes a heading before a table that opens with rowSpan: the first group with the table's bottom insets, the heading that starts a new page and the cut under it, and the header rows plus first row where margins differ.
  • The repeated header (tables.md, canonical-legacy-parity.md, docx-export.md). Both said the header repeats on every continuation page. They now name the exception from fix(layout): split a repeatHeader table whose header and next row cannot share a page #1120: a page that opens with a body row which does not fit on an empty page with the header carries no copy. tables.md's invariant list names TableRepeatHeaderOversizedRowTest for it, and its opening summary now says the header is "repeated across page breaks". The new sentences come after the page's claim markers. docx-export.md's Tables row adds that for such a row the file still marks the header to repeat and to stay with the row under it, where the page can leave the header alone at the foot of a page. keep-together.md needed no change: its best-effort rule already says a heading flows in place when it cannot share a page with the table's header rows and first body row.
  • A list marker made of runs of text (docx-export.md, lists.md, backend-capability-details.md, backend-capability-matrix.md). docx-export.md said a marker made of runs keeps its space, both in the drawn-marker bullet and after the marker column; after fix(docx): hang a list's items at the page's column after a marker made of runs of text #1121 a marker of runs of text alone takes the column, each run weighed at its own size, and one that holds a chip, draws a picture beside its text, or has a space at either end keeps its space. Its "a few hundredths at most" for how much wider Word sets a marker held only on the half-point grid: off it Word sets 10. at 10.25pt a third of a point wider, so the sentence says so. lists.md adds those three markers to the ones that do not take the column. The details entry's guard sentence now covers a marker of runs of text, and the matrix's DOCX cell names the markers whose lists take the column.

Two places needed no change. docx-export.md already says that a backend starts every export from nothing, even after one that threw, and #1110 makes the code match. It also says a page reference in a composed cell stores no number, and #1106 did not touch the DOCX writer.

When merging: use this body as the squash message. The branch's commit messages describe the notes before #1116–#1122 and list throwing cases that no longer hold.

Verification

  • Probes on the merged code. The same small documents ran on the published 2.5.3 jars and on this branch's freshly compiled classes (develop's code):

    • Atomic block. A 90pt shape with a 20pt bottom margin moves to a page with 100pt of room. 2.5.3 draws it there. The branch throws, outer height 110.
    • Earlier pass. A4 with 90pt margins and 36pt on page 2 only: a 655pt spacer, a caption and a 640, 700 or 740pt shape. Both versions lay out two pages with the shape on page 2 (y=40.10 for 740pt).
    • Refused only in an earlier pass. 400×400, rows of 138pt and 158pt after a caption. 2.5.3 throws, 158 on 100. The branch lays the 296pt table out on page 2 at y=55.15.
    • rowSpan, per-page margins. A 256pt group lands whole on page 2 at y=95.15 in both. A group of 124.55pt and 59.8pt rows meeting a 100pt page is cut after its first row in both, the cell ending at y=-4.35. Two tables meeting a 100pt page with 0pt and 30pt bottom margins match 2.5.3.
    • rowSpan, one page size. A 754.2pt group on pages with 762pt of content: the branch keeps it whole on page 2, and with a 24pt bottom margin on the table cuts it on page 1, as 2.5.3 does. A keepWithNext() heading before 33- and 36-row groups is placed as in 2.5.3.
    • Box. A filled section with 30pt of top padding opens with a 104.75pt group, on pages with 120pt of content. The branch leaves a 60pt fill alone on page 1 and the table on page 2; 2.5.3 started the table on page 1.
    • Closing inset. A box's bottom padding does not fit the rest of page 1; a page break and a 220pt shape follow, and only page 2 is short. 2.5.3 gives the inset page 2 and the shape page 3. The branch throws, 220 on 100.
    • Numbered lines. A row on A4 with eight numbered markdown lines in a narrow column is 809pt tall and throws on 762pt (757.20pt on 2.5.3).
    • Line break in a run. A 400×400 page with 20pt margins holds a row whose section has a 330pt spacer and a rich paragraph First. / Second. / Third. with a line break between each. 2.5.3 sets the paragraph on one line, 12.95pt, and the row is 342.95pt. The branch sets three lines, 38.85pt, and throws on the row's 368.85pt against 360pt. Without line breaks both give 342.95pt. A paragraph read as markdown, **First** one. + line break + Second., is two lines (25.90pt) in both versions.
    • Markdown examples. 1. node_js keeps its number; R&D node_js in a list in a table cell reads RD node_js in the PDF and R&D node_js in the DOCX.
  • Documentation guards, on the final text (this PR's head), through the reactor: ./mvnw -B -ntp test -pl :graph-compose-core,:graph-compose-render-pdf,:graph-compose-render-docx,:graph-compose-render-pptx,:graph-compose-qa -am '-Dtest=com.demcha.documentation.**.*Test,DocxBetaSurfaceTest,BetaAnnotationDocumentationTest,BundledFamiliesTest' -Dsurefire.failIfNoSpecifiedTests=false → BUILD SUCCESS, 243 tests, 0 failures: core 191 (with VersionConsistencyGuardTest, ChangelogVersionParsingTest, DocumentationCoverageTest and DocumentationLinkGuardTest), render-pdf 2, render-docx 6, render-pptx 2, qa 42 (with DocumentationSnippetCompileTest, DocumentationExamplesTest and DocxCapabilityMatrixGuardTest).

  • node knowledge/tools/claims/check-claims.mjs --check → 46 claims and 10 proofs, both current. check-stability-doc.mjs, check-routes.mjs and extract-api.mjs --from-reactor --check also exit 0, and knowledge/ is unchanged.

  • The entries match the merged code: LayoutCompiler, CompilerState, DocumentLayoutResolver, PageGeometry.hasUniformMargin, NodeDefinitionSupport, SplittableLeafCompiler, the paginationPolicy Javadoc, for fix(layout): break the line at a newline inside a rich-text run #1122 ParagraphWrapping.tokenizeInlineRuns, TextFlowSupport.paragraphFitsSingleLine, DocxSemanticBackend.fittedSize and MarkdownInline, for fix(layout): split a repeatHeader table whose header and next row cannot share a page #1120 NodeDefinitionSupport.splitAfterOwnHeader and splitWithoutHeaderCopy with TableRepeatHeaderOversizedRowTest, and for fix(docx): hang a list's items at the page's column after a marker made of runs of text #1121 DocxSemanticBackend.markerLetters, setInAColumn and wordsMarkerWidth and DocxLayoutMetrics.markerLine, with DocxListTextMarkerIndentTest and DocxListMarkerGapTest. The table split in the v2.5.3 tag gives no head where only header rows fit, which is where it threw.

Lane: docs only. No Java, generated file or baseline changes.

DemchaAV and others added 15 commits November 30, 2026 00:19
…de stale

The CHANGELOG gets its v2.5.4 section: six short hooks, an upgrade line,
then the Changed and Fixed entries for #1103 to #1112 with their known
limits. The upgrade line does not say "drop-in". With per-page margins, a
block that cannot break now throws AtomicNodeTooLargeException where it
used to run past the foot of a shorter page, and a block taller than a
short page already in use now moves to the next page, if that page can
hold it, instead of throwing. #1113 only adds a test, so it has no entry.

Docs:
- The DOCX docs gave an ordered number and a bold node_js as examples of
  what the page changes without a report note. The page keeps both, so a
  named HTML entity, which it drops, replaces them.
- The copied header rows of a split DOCX table leave out a drawing as
  well as a bookmark added after the split is decided.
- The pagination, lifecycle, shape-container, timeline and pageMargins
  texts now say that an atomic block must fit the page it lands on.
- The tables recipe says where a page break falls around rowSpan cells
  and in which cases it still cuts them, and no longer promises v1.4
  pagination to a table with rowSpan. The keep-together recipe counts the
  rows such cells hold together in a table's first slice.
…the rowSpan fix

Measured against 2.5.3, a document with per-page margins can throw in two
cases, not one. The check on a block that cannot break includes its own
top and bottom margins, so it also throws where only the bottom margin
does not fit. A rowSpan group can throw too: it is measured against the
page it leaves, and it throws if the next page cannot hold the repeated
header rows and the group's first row. The hooks, the upgrade line and the
entries now say so.

The rowSpan limits now count the table's margins. They also cover a
keepWithNext() heading that does not fit on one page with the first
group: it stays behind where 2.5.3 could move it. A box that opens with
such a table can leave its fill behind in the same way.

Docs: the texts on the page an atomic block must fit count the block's
margins, except the timeline recipe's. repeatHeader(0) no longer promises
v1.4 behaviour, which a table with rowSpan does not have. The DOCX recipe
says that the parser reads an empty bullet item into nothing, not any
empty list item, since an empty numbered item keeps its number.
…block now throws

- A numbered line that keeps its number can wrap onto one more line, so
  a row, layer stack or shape container that nearly filled its page can
  become too tall for it and throw, whatever the page margins.
- When a box's bottom padding and margin no longer open a page, later
  content can move up a page. With per-page margins, a block that cannot
  break can then start on a shorter page, and it throws if that page
  cannot hold it.
- The rowSpan throw also counts the table's padding and margins.
- The bottom-margin entry now lists every kind of fixed slot, and only
  sections, not all containers, as already right in the flow.
…rowSpan fixes

The notes were written before the last four layout fixes merged. Only the
final layout pass now throws a capacity refusal; rowSpan groups move whole
only where every page ends up with the same margins, and are cut as in
2.5.3 elsewhere; a box whose first block can split is measured against the
page it leaves again; and a keepWithNext heading starts a new page with a
table whose first group it cannot share a page with.

The upgrade text now names the documents that can still fail to lay out:
a block that cannot break on a shorter page it lands on, a table after a
cut-short closing inset, a box's table too wide for the column of the page
it moves to, and a block grown by a kept markdown number. It drops the
rowSpan refusal and the stranded heading, which no longer happen, and adds
the multi-pass rule, the custom paginationPolicy note and the remaining
limits. tables.md and keep-together.md describe the rowSpan rule, the
heading and their costs; pagination-ordering.md says that only the last
pass throws.
…gs and boxes

- A pass that stops on another error throws the exception for the
  first block it refused, or that error if it refused none; the
  CHANGELOG and pagination-ordering.md now say so instead of "only the
  last pass throws".
- tables.md names when a keepWithNext() heading stays above a cut
  rowSpan group: the header rows and first body row, with the table's
  bottom margin and padding, fit under it.
- The box that leaves its fill behind a moved rowSpan group says what
  2.5.3 did; paginationPolicy is asked at the width the box gives the
  leaf; the heading counts more than the header rows and first body row.
- The per-page-margin upgrade bullet lists its three cases separately.
A line break inside a rich-text run now breaks the line in PDF and
PPTX, as text() does with the same characters; DOCX already did. The
2.5.4 section gets a Fixed entry for it: the run's style and link on
both sides of the break, the chip that still turns a break into a
space, auto-size taking the smallest size (and DOCX writing that size),
template text in inline Markdown gaining its breaks, and the
re-rendered world-scripts preview.

The numbered-line hook also names the fix, so the section keeps six
hooks, and the upgrade text adds a row, layer stack, shape container or
composed table row that nearly fills a page and holds such a break: it
now takes more lines and can be refused as too tall.
A preset that splits body text at its line breaks before setting it
never hands a run a newline, so its output does not change. The 2.5.4
entry for the rich-text line break now says so.
A table with repeated header rows whose header and next body row did not
fit on an empty page together threw AtomicNodeTooLargeException. It now
splits at that row as it would without repeatHeader(), and a page that
opens with such a row carries no copy of the header.

The notes name it among the documents that now lay out, give it a Fixed
entry with its limits (a keepWithNext heading left at the foot of a page,
the DOCX export that still repeats the header), and the table recipe and
the parity table state the exception to "every continuation page".
The page can now leave a repeated header alone at the foot of a page and
open the next without a copy, where a body row does not fit on an empty
page with it. The DOCX file still marks the header to repeat there and
to stay with that row; the export guide's Tables row now says so. The
2.5.4 note names only rows that fit a page by themselves.
A hangingIndent list whose marker is made of runs of text alone now
hangs its items at the page's column in DOCX, as after a marker given
as text. The Fixed entry says what changed and which markers keep their
space; the upgrade text says an entry can change a document's DOCX
export. The DOCX recipe, the lists recipe and the capability matrix and
details stop saying a marker of runs keeps its space, and the recipe no
longer says Word sets a marker at most a few hundredths wider.
…that keeps its space

The DOCX recipe, the lists recipe and the capability details named the
chip and the picture beside text, but not a marker of runs that starts
or ends with a space, which keeps its space too.
@DemchaAV
DemchaAV marked this pull request as ready for review December 2, 2026 22:43
@DemchaAV
DemchaAV merged commit fb9e24f into develop Dec 2, 2026
11 checks passed
@DemchaAV
DemchaAV deleted the fix/changelog-and-docs-for-2-5-4 branch December 2, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant