Skip to content

HAR-9668 Fix issue with inability to open the document after export#518

Merged
harbournick merged 3 commits intomainfrom
har-9668_html-annotation-export
May 22, 2025
Merged

HAR-9668 Fix issue with inability to open the document after export#518
harbournick merged 3 commits intomainfrom
har-9668_html-annotation-export

Conversation

@VladaHarbour
Copy link
Copy Markdown
Contributor

The issue appeared due to exporting sdt annotations together with text nodes in one paragraph within table cell.
Word cannot open a .docx file when a <w:sdt> (Structured Document Tag) and a regular text run (<w:r>) are siblings directly inside a single paragraph (<w:p>) inside a table cell (<w:tc>) due to a strict XML schema rule in WordprocessingML. This structure violates the expected content model for Word, even though it's technically allowed by the Open XML standard.

Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour left a comment

Choose a reason for hiding this comment

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

These changes look good to me, although I'm not sure how this will affect import/export of annotations. Before merging, could you test these changes locally with full flow in webapp?

@harbournick @VladaHarbour

@VladaHarbour
Copy link
Copy Markdown
Contributor Author

@artem-harbour @harbournick tested it within Webapp and add a couple of more fixes. Was able to download and open agreement with html annotations

Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

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

LGTM

@harbournick harbournick merged commit 80458cc into main May 22, 2025
5 of 6 checks passed
@harbournick harbournick deleted the har-9668_html-annotation-export branch May 22, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants