Forum


Replies: 3   Views: 3471
Replacetemplatevariablebyhtml first is space
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 nikkyb8  · 28-10-2015 - 14:08

Hello,

When I use replaceTemplateVariableByHTML , I always have a space in the beginning regardless of the content example:
$html = 'hello';
give me
 hello

 
Here is a topic on this subject that has not been resolved : http://www.phpdocx.com/en/forum/default/topic/681

 


How to fix this?

Posted by admin  · 28-10-2015 - 16:37

Hello,

The solution is in the same topic. Tidy must be installed and enabled to avoid that extra blank space.

Regards.

Posted by nikkyb8  · 05-11-2015 - 10:40

ok but tidy is already installed... another idea ?

 

Posted by admin  · 05-11-2015 - 11:46

Hello,

This issue has always been solved using Tidy. If it's not your particular case we'd need to check your server directly. Please send an email to contact[at]phpdocx.com

Regards.