Skip to content

fix(docx): keep run edge whitespace when xml:space is unmarked - #111

Merged
tomsideguide merged 2 commits into
mainfrom
fix/docx-run-whitespace
Aug 19, 2026
Merged

fix(docx): keep run edge whitespace when xml:space is unmarked#111
tomsideguide merged 2 commits into
mainfrom
fix/docx-run-whitespace

Conversation

@tomsideguide

@tomsideguide tomsideguide commented Aug 19, 2026

Copy link
Copy Markdown
Member

Runs carrying inter-word spacing on their edges, in files that never mark xml:space, came out glued: Thisby-lawgrantstheowner.

XML leaves unmarked whitespace to the application, so dropping it was our default rather than a rule. Keeping it costs a stray space at worst.

Ancestor preserve works now too, which it did not before. No fixture output changes.

Closes #105

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread src/formats/docx/mod.rs
Comment thread src/formats/docx/mod.rs
@tomsideguide
tomsideguide merged commit 5cf142a into main Aug 19, 2026
5 checks passed
@tomsideguide
tomsideguide deleted the fix/docx-run-whitespace branch August 19, 2026 20:09
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.

docx: leading run whitespace dropped when a document never uses xml:space="preserve", gluing words (PDF→Word converter output)

1 participant