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.
I've a problem with my spaces. I've declared my managementsummary as variable in my template. When I'm replacing it by html, on my first line there is a space before the first word. There is a space on each new row. When a row goes to the end of the page, and automatically to the second row, everything is fine.
With replaceVariableByText() is the row fine, there is no space visible.
My replace code: $docx->replaceVariableByHtml('MANAGEMENTSUMMARY', 'inline', $contentManagementSum, array('strictWordStyles'=>true));
Does that replace put an extra space before the first line? How can I prevent that? I've used the "strictWordStyles" to prevent the html changing the font-size from 10 to 12.