Skip to content

Conversation

@lowellstewart
Copy link

DocumentAssembler can leave table cells entirely empty, which causes Word to complain about an invalid file when opening it. Table cells are not expected to be completely empty; every table cell is expected to have at least one block-level element in it (such as an empty paragraph).

However, when DocumentAssembler assembles Conditional tags, and the Conditional tag causes content to be removed from a table cell, the cell is indeed left completely empty -- leading to errors in Word.

This PR enhances DocumentAssembler so it checks assembled table cells to ensure they are left with at least one block-level element in them, and if not, it adds an empty paragraph so Word does not complain about the file when it is opened.

@lowellstewart lowellstewart requested a review from stesee as a code owner January 22, 2026 01:22
@stesee stesee merged commit 5b9c408 into Codeuctivity:main Jan 22, 2026
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants