Forum


Replies: 1   Views: 3238
Html to word unordered list spacing
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 keiths  · 11-01-2013 - 19:38

I have some very basic code that is converting HTML to docx. The HTML I am converting is unordered lists. When it does, it puts an extra space after each line item.

Has anyone come across this before?

This is my basic code:

[code]$docx = new CreateDocx();

$wordhtml = '';

for ($x = 0; $x < count($r); $x++)
{
$wordhtml .= Markdown(trim($r[$x]['work_scope_install']));
}

$docx->embedHTML($wordhtml);

$docx->createDocxAndDownload('../../../images/uploaded/estimate');[/code]