[REBOL] Re: How to put return in view facets
From: anton:wilddsl:au at: 22-Jan-2009 1:57
Yes, ^/ is a newline character, as you can see:
newline ;== #"^/"
You can use AS-IS to prevent the LABEL init from trimming
the text of line breaks and extra spaces. eg.
view layout [label as-is "line-1^/line-2"]
So the line breaks now appear as expected.
You can see where the trimming happens here:
print mold svv/vid-styles/label/init
Other text styles are affected by AS-IS in exactly the same way.
They are (probably) all found and listed by this code:
foreach [style face] svv/vid-styles [
if find mold face/init "as-is" [print style]
=DEemseddin Moldibi [ Bircom ] wrote: