Dear support,
With version 9, replacing variable with "replaceVariableByHTML" displays an extra space before the text.
You can see the problem with this simple code :
<?php
require_once '../../../Classes/Phpdocx/Create/CreateDocx.php';
$docx = new Phpdocx\Create\CreateDocxFromTemplate('../../files/TemplateHTML.docx');
$docx->replaceVariableByHTML('CHUNK_1', 'block', "<- Should not have a space before thhis text<br />End of the text");
$docx->replaceVariableByHTML('CHUNK_2', 'inline', "<- Should not have a space before thhis text<br />End of the text");
$docx->createDocx('MyTestDoc');
Do you know how to fix this?
Best regards