cuba-platform / yarg

Yet Another Report Generator - CUBA Platform reporting engine
https://www.cuba-platform.com
Apache License 2.0
239 stars 75 forks source link

Fixed converting alt chunks #148

Closed Desire456 closed 2 years ago

Desire456 commented 2 years ago

The way to provide HTML content into Docx document: we add altChunk into P (paragraph) (in this case altChunk and R (run) are siblings) and then before saving the document convert these altChunks and add altChunk content into P. The second part of this approach is not ideal. If we have HTML content containing P and add content from P to other P, we lost the RPR (paragraph runtime properties) (settings of indentations, tabs, etc). I suggest we should add the HTML content into P parent content (P containing R with altChunk) - now content parts from altChunk andP are siblings.