kolonaymh

Adding formatting to text element causes loss of line break

Discussion created by kolonaymh on Mar 14, 2011
I have some code that adds newlines to text based on the text element's width. So the string that I pass the textElement.text property is something like:

'One line \n Another line'

This works great until I change the formatting of the text with the standard markup. The string that I pass would look something like this:

'<FNT name="Arial" size="20">One line \n Another line</FNT>'

When I add the markup the line does not break on the \n.

Anybody have any ideas?

Thanks.

Michael.

Outcomes