Skip to content

Support carriage return runs#887

Merged
bokuweb merged 2 commits intobokuweb:mainfrom
yuntara:fix/carriage-return-runs
Apr 21, 2026
Merged

Support carriage return runs#887
bokuweb merged 2 commits intobokuweb:mainfrom
yuntara:fix/carriage-return-runs

Conversation

@yuntara
Copy link
Copy Markdown
Contributor

@yuntara yuntara commented Apr 21, 2026

What does this change?

This change adds support for reading w:cr in runs.

Previously, w:cr could be dropped during parsing and end up as an empty run. It is now preserved as a carriageReturn run child in the parsed output so downstream code can handle it explicitly.

References

  • No public issue or related PR links

Screenshots

Not applicable.

What can I check for bug fixes?

Use a .docx file that contains w:cr in a run and verify that the parsed output now includes type: "carriageReturn" instead of an empty run.

You can also run:

  • cargo test -p docx-rs test_read_cr

@bokuweb bokuweb merged commit 2ae569f into bokuweb:main Apr 21, 2026
4 checks passed
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.

2 participants