Skip to content

Fix Pandoc subdocument XML namespace handling - #658

Open
aka-debug-jie wants to merge 1 commit into
elapouya:masterfrom
aka-debug-jie:fix/issue-620-pandoc-namespaces
Open

Fix Pandoc subdocument XML namespace handling#658
aka-debug-jie wants to merge 1 commit into
elapouya:masterfrom
aka-debug-jie:fix/issue-620-pandoc-namespaces

Conversation

@aka-debug-jie

Copy link
Copy Markdown

Summary

  • serialize each direct subdocument body child so inherited XML namespaces remain in scope
  • preserve the existing sectPr removal behavior
  • add a Pandoc-generated DOCX regression fixture with an embedded image

Validation

  • reproduced the original Namespace prefix a on graphic is not defined failure on the unfixed baseline
  • verified the rendered DOCX opens with python-docx and its word/document.xml parses with lxml
  • verified the merged document retains one inline image and namespace-resolved DrawingML/PictureML elements
  • passed the complete 37-script test suite, related subdocument/header-footer tests, flake8, package builds, and archive audits

Closes #620

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.

Subdocument merge with Pandoc-generated DOCX causes XML namespace errors when opening the resulting file

1 participant