Newline in Label Node

Hi,

Really sorry for the basic question, but I’ve searched and can’t find the answer. Does anyone know how to add new lines to the Label component. E.g.

     <Label 
              id = "bodyLabel" 
              width = "1000"
              height = "1000"
              text = "test  \n new line" 
              wrap = "true"
              horizAlign = "left" />        

I know in code it would be Chr(10) but don’t know how to add this direct to strings in XML.

Thanks,

Ryan

I’ve found the solution, kinda obvious when you know how. For other users it’s

E.g

<Label 
              id = "bodyLabel" 
              width = "1000"
              height = "1000"
              text = "test  
 new line" 
              wrap = "true"
              horizAlign = "left" />     

Thanks for sharing!
I would have thought it’s as simple as literally embedding the new line:

     <Label text = "test  
 new line" 
              wrap = "true"
              horizAlign = "left" />

But no - not with XML. It’s true that you can include new lines in attribute values. But what’s also true apparently is that there is mandate to normalize[/url:j69i4sxg] these, in which new lines and tabs would get converted to spaces. Isn’t that grand?

99 problems to solve on Roku,
99 problems to solve.
Take one down, pass it around,
98 problems to solve on Roku.

98 problems to solve on Roku,
98 problems to solve.
Take XML up, pass it around,
99 problems to solve on Roku.

The same way. In label, both ways I tried to like below.

  1. Chr(10)

But, Doesn’t work for me. Is there any other option for this. I used the current version (9.3.0) and Cooper devices.