问题
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>
回答1:
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>
来源:https://stackoverflow.com/questions/10031215/br-or-newline-in-xul