XPages: Label and Line Break / New Line?

Am I just stupid or what is it that I’m not able to add a simple line break into a label on a XPage?

I set the value for the label to computed java script server side. Neither “
”, “\n”, “@NewLine()” nor “@Char(13)” does work.

My code looks like this

"This is the first line " + “\n” + “This is the second line”;

Any help would be great :slight_smile:

Cheers

Jens

Subject: does it have to be a label

You can use
in a computed field that content type is set to HTML with the following Javascript:

"This is the first line " + “
” + “This is the second line”;

http://www-10.lotus.com/ldd/ddwiki.nsf/dx/How_to_Simulate_Pass-Thru_HTML_on_an_XPage

Subject: label seems to eliminate markup

Thanks, seems that label control wipes out any markup no matter if it is javascript or html.

Cheers

Jens