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

Supports CoreProperties with No Namespace #36

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

nparent1
Copy link

@nparent1 nparent1 commented Dec 16, 2024

This is very similar to this old PR: #20

The CoreProperties element can sometimes have its namespace defined as a default namespace (I've encountered some such word documents). See the defaul namespaces section here, along with the example docx file I have added to the pandocs folder.

This change just adds a CoreNoNamespace alternative which handles the missing namespace tag

Note that CoreNoNamespace implements to_writer the same exact way as CoreNamespace (namely, it writes the XML with the namespace). This is for simplicity, since there is no harm in writing the XML back out with the namespace defined in the usual fashion.

@nparent1
Copy link
Author

@cstkingkey ready for your review

@cstkingkey cstkingkey merged commit ed40c95 into cstkingkey:master Dec 17, 2024
1 check 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