$parFormat = new PHPRtfLite_ParFormat();
$sect->writeText('This is first paragraph', $font, $parFormat);
$sect->writeText('This is second paragraph', $font, $parFormat);
When $parFormat is not NULL, writeText() will generate the text as paragraph.
I hope, this was helpful for you.
SigmaZ
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How to create new paragraphs such that the following writeText creates new paragraphs? What to substitute for [seperator[?
$sect->writeText ("This is first paragraphThis is second paragraph", $font, $parFormat);
Thank you.
Why not writing:
$parFormat = new PHPRtfLite_ParFormat();
$sect->writeText('This is first paragraph', $font, $parFormat);
$sect->writeText('This is second paragraph', $font, $parFormat);
When $parFormat is not NULL, writeText() will generate the text as paragraph.
I hope, this was helpful for you.
SigmaZ