br or newline in XUL

Go To StackoverFlow.com

1

How to move text to a new line in XUL without html:br? is there a newline character in XUL or something like this?

<description>
    Some
    text
    here
</description>
2012-04-05 15:09
by Daniel J F


3

The <description> element can respect line breaks, the same as <html:p>. You simply have to use the white-space CSS property:

<description style="white-space: pre-wrap;">
    Some
    text
    here
</description>
2012-04-05 17:09
by Wladimir Palant
Ads