Hi Jarno,
Thank you for your question.
Text handling is certainly brittle with the underlying library.
However I checked and was able to make newlines appear in the document correctly. I put new lines in this example and they were rendered correctly.
I hope this example helps. If not, could you post with as much detail as possible and I will try to help.


Kind regards,
Stuart