Skip to content

Conversation

@lowellstewart
Copy link

Greetings! I'm the maintainer of another fork of OpenXmlPowerTools. I noticed you have what seems to be the most-frequently maintained fork, so I wondered if you would mind if I submitted some pull requests for several bug fixes I have made over the past several years? In all cases I'll try to include appropriate unit tests so you can see exactly what triggers the buggy behavior. If this PR looks okay I will submit several others.

In this case, the bug is caused by DOCX files containing (probably old, perhaps deprecated, but nevertheless encountered in real life!) "smart tags", specifically when those smart tags contain custom properties. The MarkupSimplifier, when asked to remove smart tags from documents, removes them but does NOT remove the "properties" associated with them, which leaves the resulting document in a corrupt state. The fix is, when removing smart tags, to also check for smart tag properties and remove them at the same time.

@lowellstewart lowellstewart requested a review from stesee as a code owner January 5, 2026 21:26
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@lowellstewart
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 5, 2026
Copy link
Collaborator

@stesee stesee left a comment

Choose a reason for hiding this comment

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

Pull requests (PRs) that include changes supported by tests are highly encouraged.

@stesee stesee merged commit f1bfd9c into Codeuctivity:main Jan 6, 2026
1 of 2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 2026
@lowellstewart lowellstewart deleted the fix/remove-smart-tag-properties branch January 6, 2026 16:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants