Forum


Replies: 1   Views: 364
Extra line breaks
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 jeremie  · 29-04-2024 - 14:24

The following HTML code should add only one blank line between the words "Foo" and "Bar":

<p>Foo<br><br></p><p>Bar</p>

But when embedding the code like this,

$docx->embedHTML('<p>Foo<br><br></p><p>Bar</p>');

the output Word document displays two blank lines between "Foo" and "Bar".

What am I missing?