Skip to content

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
@ryanamannion ryanamannion merged commit 43c41f9 into develop Oct 11, 2024
michael-koeller added a commit to michael-koeller/python-docx that referenced this pull request Dec 12, 2024
michael-koeller added a commit to michael-koeller/python-docx that referenced this pull request Dec 12, 2024
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.

3 participants