Forum


Replies: 7   Views: 2559
Replacevariablebyhtml css render with root tag not working
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 06-05-2019 - 11:09

Hello,

The initial value is not supported by the HTML to DOCX transformation, so you can see a weird output if you try to use it. In your script, the paragraphs aren't removed in the DOCX output, but the spacing is set to 0 for all paragraphs:

<w:p>
    <w:pPr>
        <w:widowControl w:val="on"/>
        <w:pBdr/>
        <w:spacing w:after="0" w:before="0" w:line="240" w:lineRule="auto"/>
        <w:ind w:left="0" w:right="0"/>
        <w:jc w:val="left"/>
    </w:pPr>
    <w:r>
        <w:rPr>
            <w:color w:val="FF0000"/>
        </w:rPr>
        <w:t xml:space="preserve">This is a test.</w:t>
    </w:r>
</w:p>

Regards.