Skip to content

fix(core): add a list marker's extra ascent once under auto line spacing - #2154

Open
jamesashbourne-lawhive wants to merge 1 commit into
eigenpal:mainfrom
jamesashbourne-lawhive:fix/list-marker-rise-unscaled-by-line-spacing
Open

jamesashbourne-lawhive wants to merge 1 commit into
eigenpal:mainfrom
jamesashbourne-lawhive:fix/list-marker-rise-unscaled-by-line-spacing

Conversation

@jamesashbourne-lawhive

@jamesashbourne-lawhive jamesashbourne-lawhive commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

A list marker in a face that ascends above the paragraph text raises its line. Under auto line spacing, layout added that rise before it applied the multiple, so the rise grew with the spacing. Word scales only the text band and adds the rise once.

We found this in a one-page firm profile. A two-column table of bullets uses the default Symbol bullet at 1.5 spacing. Each bullet line was 0.29pt too tall, 1.75pt over the column. A picture near the foot of the page then crossed the bottom margin by 1.4pt, so its line and the two lines after it moved to a second page. Word keeps the document on one page.

Behavior

  • A marker that ascends above the text (w:spacing, CT_Spacing, ECMA-376 Part 1, §17.3.1.33; ST_LineSpacingRule auto, §17.18.48) grows its line by the difference once. The multiple applies to the text band.
  • Single spacing, exact, and atLeast lines do not change. Lines with w:position text already leave the marker out of the multiple and do not change.
  • Measured in Word with an 11pt Calibri list: an 11pt Symbol bullet at 1.5 spacing gives 20.72pt lines, against 21.02pt before and 20.73pt after. A 22pt bullet gives 31.68pt at 1.5 and 38.31pt at double spacing, against 40.4pt and 53.9pt before and 31.79pt and 38.5pt after.
  • docx-fidelity.mdx states the rule under lists.

Tests

  • list-marker-line-spacing.test.ts adds 4 layout tests with a measurer whose marker face ascends 4pt further. The 1.5 and double spacing tests fail without the source change, with 27pt and 36pt for 25pt and 32pt. Single and exact spacing pass before and after.
  • list-marker-symbol-face.test.ts expected 16.482pt for a Symbol-marked line at 1.15 spacing, from the old formula. Its comment said the box grows by the same amount as the baseline. It now expects 16.400pt, the plain line plus the 0.544pt rise, and the comment shows that sum.
  • With the same change on 2.39.0, the profile lays out as one page. Six other documents with bullet lists, from 1 to 11 pages, keep their page counts, which match Word.
  • typecheck, lint, format:check, check:docs, check:lane-boundaries, check:license-headers, reference:check-citations, collaboration:check, api:check (after build:packages), and openspec validate typed-ooxml-paragraph-editor --strict pass. test:changed ran 3081 files: 35251 tests pass, and the one failure was the expectation above, since updated; both marker test files pass.

Collaboration

collaboration:check asks for no decision. The change is in line layout only. Shared state, operations, and synchronization are unchanged.


Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

A list marker whose face ascends above the paragraph text raises its
line's baseline (17.3.1.33 spacing). Under an auto multiple
(ST_LineSpacingRule auto, 17.18.48) core added that rise to the line
before it applied the multiple, so the rise grew with the spacing.

Word scales only the text band and adds the marker's rise once. A 22pt
Symbol bullet on an 11pt Calibri list measures 31.7pt at 1.5 spacing and
38.3pt at double spacing in Word, against 40.4pt and 53.9pt before this
change and 31.8pt and 38.5pt after it. Lines with w:position text
already leave the marker out of the multiple and are unchanged.
@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

@jamesashbourne-lawhive is attempting to deploy a commit to the EigenPal Team on Vercel.

A member of the Team first needs to authorize it.

@eigenpal-release-pal

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅

Posted by the CLA bot.

This branch has not been deployed

No deployments
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