Forum


Replies: 1   Views: 3084
Putting line breaks in replaced text
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 mice-pace  · 19-10-2012 - 00:41

I'm having to rework a PHPDocx file i made a while ago and i'm running into a minor but annoying snag...

When i use assign to change some text on a template

[code]$report->assign("#CONCLUSION#", $details['conclusion']);[/code]

using data taken from a database, is there a way to get it to respect the linebreak characters inside that text as a reason to start a new line? At the moment i think it is converting them to spaces (or atleast treating them that way);