Forum


Replies: 2   Views: 4637
Replacetemplatevariablebyhtml - new line
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 benoit.quentin-tr@sncf.fr  · 28-05-2014 - 13:45

Hello,



When I use :



$html = '<p>aaaa bbbb cccc<br />AAA BBB CCC</p>'

$PHPDocx->replaceTemplateVariableByHTML($key, 'inline', $html, array('strictWordStyles' => true, 'isFile' => false, 'parseDivsAsPs' => true));



There is a space inserted before the second line, the result is :

aaaa bbbb cccc

 AAA BBB CCC



It must be :

aaaa bbbb cccc

AAA BBB CCC


Posted by jorgelj  · 29-05-2014 - 14:00

Hello,



Do you have Tidy enabled?



Regards.