Forum


Replies: 1   Views: 3900
Line break within addtext function
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 nachtschicht  · 28-03-2012 - 09:54

Hi,

is there a way to make the addText function recognise line breaks in the provided text? e. g.

$text = "bla bla blan next line";
$docx->addText($text);

I have tried to use \\n, \\r\\n, <br /> and _x000D_ but none is working.

Kind regards,
Johannes

Posted by jari.heinonen  · 24-09-2014 - 14:02

Deleted by jari.heinonen · 24-09-2014 - 14:03