Notifications
Clear all

[Closed] TextShape – Setting text with carriage returns?

I’m trying to create a text shape object with a few lines of text in it… but the carriage returns aren’t working…


s = ""
s+= "A test
"
s+="B test
"

t = text()
t.text = s

If I look in the text object the text field has this in it…
A test■B test■

However if I query the text box’s contents using the listener…

$.text
"A test
B test
"

2 Replies
 JHN

I think you have to use “

-Johan

Cheers that works!