Forum


Replies: 2   Views: 1384
Unwanted space at beginning of table cell
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 admin  · 15-07-2020 - 08:30

Hello,

The problem comes from enabling disableWrapValue, please use the following options:
 
$options = array(
     'parseDivs' => 'paragraph',
    'addDefaultStyles' => true,
    'useHTMLExtended' => true,
    'downloadImages' => true,
    'parseFloats' => true,
    'strictWordStyles' => false,
);

$docx->embedHTML($html, $options);

and the extra blank spaces won't appear. Please note that disableWrapValue option is for very specific cases when using some Tidy versions with problems.

Regards.