Forum


Replies: 5   Views: 1290
Extra space printed before the replaced variable with "replacevariablebyhtml"
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 Bouillou  · 01-10-2020 - 15:29

Thanks for your answer.

So, if I understand well your answer, this code should work isn't it?

$docx->replaceVariableByHTML('CHUNK_1', 'block', "<- Should not have a space before thhis text<br />End of the text", array('removeLineBreaks' => true));

Because it is not :o(

P.S. : I don't have access to the TIDY settings