Skip to content

Preserve bookmarks and justified spacing for styled words - #74

Closed
gaspardpetit wants to merge 3 commits into
fix/migradoc-rejected-tab-area-continuationfrom
fix/migradoc-styled-word-review
Closed

gaspardpetit wants to merge 3 commits into
fix/migradoc-rejected-tab-area-continuationfrom
fix/migradoc-styled-word-review

Conversation

@gaspardpetit

@gaspardpetit gaspardpetit commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Keep Latin words together when styled text runs split them, including accented letters, contractions, and terminal punctuation. Move a leading bookmark with its word. Decide whether the group can move using the continuation line's effective indent, justified-space contraction, current-line leading kerning, and applicable terminal overhang.

This follows the styled-word fix in #8 and the area-continuation fix in #73. Mirrors the review corrections in Pdfxport #70.

Regressions cover each case. MigraDoc.Tests on .NET 8: 510 passed, 17 skipped. MigraDoc.Rendering netstandard2.0 build passed. The two changed files match Pdfxport #70 exactly.

@gaspardpetit
gaspardpetit force-pushed the fix/migradoc-styled-word-review branch from d1a4905 to f2643da Compare October 21, 2026 03:16
@gaspardpetit

Copy link
Copy Markdown
Owner Author

There are too many side effects and edge cases, this is on hold. See gaspardpetit/Pdfxport.Net#70

@gaspardpetit
gaspardpetit deleted the fix/migradoc-styled-word-review branch October 23, 2026 04:00
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