Repository navigation
fix(core): add a list marker's extra ascent once under auto line spacing - #2154
Open
jamesashbourne-lawhive wants to merge 1 commit into
Conversation
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.
|
@jamesashbourne-lawhive is attempting to deploy a commit to the EigenPal Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
All contributors have signed the CLA ✍️ ✅ Posted by the CLA bot. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
w:spacing,CT_Spacing, ECMA-376 Part 1, §17.3.1.33;ST_LineSpacingRuleauto, §17.18.48) grows its line by the difference once. The multiple applies to the text band.exact, andatLeastlines do not change. Lines withw:positiontext already leave the marker out of the multiple and do not change.docx-fidelity.mdxstates the rule under lists.Tests
list-marker-line-spacing.test.tsadds 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.tsexpected 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.typecheck,lint,format:check,check:docs,check:lane-boundaries,check:license-headers,reference:check-citations,collaboration:check,api:check(afterbuild:packages), andopenspec validate typed-ooxml-paragraph-editor --strictpass.test:changedran 3081 files: 35251 tests pass, and the one failure was the expectation above, since updated; both marker test files pass.Collaboration
collaboration:checkasks for no decision. The change is in line layout only. Shared state, operations, and synchronization are unchanged.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.