Notifications
Clear all

[Closed] multiline text shape

Hi, I found this strange thing…I can’t find a way to create a multiline text shape.
even when:


shape1.text = sourceText --get a MULTILINE text from existing shape
shape2.text = sourceText --apply it to a brand new text shape flattens it

I tried “blahblah
blah
blahblahblah
” but this tricky lil thingy just keeps on flattening and puts strange vertical bars in the text window of the shape.

Please help, my fileNamesWithTheirPathsOrNetworkPaths are quite long:D

pt

2 Replies

Hi,

For some strage reason, the text object seems to use “\r” for line break.
try:

text text:"line1\rline2"

hOpe this helps,
o

Thanks!

That works but it produced some problems.
After myText.text = “blah\rblah\blah”, the text in text field appears divided by strange vertical bars, not in lines, so when I try to get it out, there are strange invisible character in myBroghtBackText = myText.text.