Thanks for sending the files. The problem is related to some configuration from PHP Tidy, that is doing a break for each word; we have tested your script in our test servers and the blank spaces don't appear.
phpdocx 8 added a new option to clean these breaks: removeLineBreaks ; but you can add support to phpdocx 7.5 easily.
Please edit the classes/CreateDocx.inc file, and in the embedHTML method, replaces the following lines:
if ($class == 'WordFragment') {
  $this->wordML .= (string) $sFinalDocX[0];
} else {
  $this->_wordDocumentC .= (string) $sFinalDocX[0];
}with:
if ($class == 'WordFragment') {
  $this->wordML .= (string) str_replace(array("\n", "\r\n"), '', $sFinalDocX[0]);
} else {
  $this->_wordDocumentC .= (string) str_replace(array("\n", "\r\n"), '', $sFinalDocX[0]);
}After this change the blank space in each line will disappear.
Regards.
 
                 Log in
                                    Log in
                                 Contact
                                Contact
                             Forum
                                Forum