Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV-4268: Fix namespace for Custom Properties #25

Merged
merged 6 commits into from
Oct 11, 2024
Merged

Conversation

ryanamannion
Copy link

@ryanamannion ryanamannion commented Oct 11, 2024

I originally thought this "Unreadable Content" warning had to do with the namespace prefix on the Properties tag: python-openxml#1273 (comment)

It did, in part, have to do with that. But in testing fixes, I thought that op was still wrong because:

  1. I tried switching the nsprefix of Properties to <op: Properties> and still got the issue
  2. Word creates custom.xml files without an nsprefix e.g. <Properties>

However, after using the Open XML SDK Productivity Tool from dotnet I was able to determine that the issue was from the missing namespace prefix on the child tag <property>

image

This PR changes the prefix to the correct one, op and adds the namespace prefix for all child elements <op:property>

@ryanamannion ryanamannion marked this pull request as ready for review October 11, 2024 18:21
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