Thank you for your fast response. We checked that and using
block
instead of
inline
displays the string as expected. It's still not completely clear why this isn't working anymore now because with phpdocx4 it was also working with inline. I guess that was a bug then? It would be nice if there is a way to get the new lines to work with inline again because using block brings some other problems (e.g. other variables will be removed if one variable in this line gets removed) that we need to handle then.