Forum


Replies: 9   Views: 336
How to reduce space between one line break
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 admin  · 30-07-2024 - 10:52

Hello,

To replace the supported line breaks:

'\n\r', '\r\n', '\n', '\r', "\n\r", "\r\n", "\n", "\r"

when adding contents in the supported methods, you need to enable the parseLineBreaks option (the default value of this option is false). This option replaces the line breaks with <w:br/> tags in the document.

Regards.