I have simple templates set up, with some layout set (header, footer, margins) and one single variable to replace. However, when I replace it with HTML with the call:
$docx->replaceVariableByHTML('REPORT', 'block', $css . $html, [ 'strictWordStyles' => false, 'parseDivsAsPs' => true ]);
… the generated file has a space on the beginning of every single paragraph. I set the paragraphs to have no left margin, the HTML renders like I want it to render on the browser (with no margin nor text indentation), but the generated files invariably have that space. I tried replacing <p> tags with <div>, removing potential tabs and nl characters, all for naught. Tidy is enabled; I've checked with
… right before the file generating code, and the function returns true.
PHP 7.2.6, phpdocx 7.5.
Any help fixing this issue would be greatly appreciated, and would lead to acquiring further licenses to deploy this software to other servers. Thank you in advance!