antonmihaylov / OpenXmlTemplates

Word .docx templating system that is designer (no scripting tags) and server-friendly (no word installation required)
GNU Lesser General Public License v3.0
92 stars 25 forks source link

Table Cells being removed even if they have content #53

Open stephenhynds opened 3 months ago

stephenhynds commented 3 months ago

If I have a document which has a table with ContentControls in some of the cells. When setting KeepContentControlAfterReplacement to true the control AND any content that has been replaced will be removed. By simply adding a space before the ContentControl in the table cell it stops the problem.