Showcase to bug report for xdocreport
Problem: Filled Merge fields with SyntaxKind.Html
are filled with nested <w:t><w:r><w:t>
structure with seems to be invalid. At least LibreOffice 6 drops partly document data.
FilledInvalidTemplate.docx
: Filled with some merge fields withSyntaxKind.Html
. Some text is lost when opened in LibreOffice.FilledInvalidTemplate.pdf
: Opened with LibreOffice and exported as PDF. The first text in the HTML field is lost.FilledFixedTemplate.docx
: Sanitizedword/document.xml
, no loss in LibreOffice any more.FilledFixedTemplate.pdf
: Opened with LibreOffice and exported as PDF. No loss.
DocxTemplateWithHtmlFillerTest
generates the .docx files.