Forum


Replies: 4   Views: 4801
Extra white space before first line.
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 nicks  · 12-11-2015 - 13:32

Managed to suss this, so for anyone else having issues you need to strip any newlines or tabs from the output generated from ckeditor.

 

This worked for me:

 

$string = str_replace(array("\n", "\t", "\r"), '', $string);