Forum


Replies: 9   Views: 4423
Replacetablevariable & parselinebreaks=true failure
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 falcana-blocked  · 12-06-2014 - 03:34

I'm trying to use replaceTableVariable together with "parseLineBreaks=true", which doesn't work properly. If the content for the cell is "Line1\nLine2" (with double quotes) -> this gives "Line1 Line2" in the document If the content for the cell is 'Line1\nLine2' (with single quotes) -> this gives "Line1</w:t><w:br/><w:t>Line2" in the document As seen from one of your examples I guess, that using single quotes would be the right way, but obviously there's a bug? Is there a workaround?