There appears to be a bug in the way the underlying Flash 7/8 TextField object handles HTML formatted text, it strips the whitespace when it is inside of a <font>...</font> tag, for some reason. Our compiler is actually passing the space character, but it disappears when the TextField gets it, for some reason. This doesn't happen in DHTML.
On Nov 19, 2007 5:47 PM, Rich Christiansen <[EMAIL PROTECTED]> wrote: > Good idea! > > Another workaround would be to do something like this: > > <canvas height="100"> > <simpletextlayout axis="x" spacing="10"/> > <text multiline="true" > > <font size="15">]</font> > </text> > <text multiline="true" > > <font size="15">[</font> > </text> > </canvas> > > > Benjamin Shine wrote: > > > Why not just this? > > <canvas height="100"> > <text multiline="true" > > <font size="15">] [</font> > </text> > </canvas> > > On Nov 19, 2007, at 11:04 AM, Dominic Marcotte wrote: > > How to only display a space or a non breaking space? > I think Openlaszlo sometimes trim the content of elements.|| > > This code display "][" and not "] [" > > <canvas height="100"> > <text multiline="true" > > <font size="15">]</font> > <font size="10"> </font> > <font size="15">[</font> > </text> > </canvas> > > I also tried with , and �A0; but I get "|Character > reference "" is an invalid XML character."| > > In XSL, we can use "<xsl:preserve-space elements="xsl:text"/>" to preserve > space in xsl:text element. Is there something like that in Openlaszlo? > > Thanks > > Dominic > > > > -- Henry Minsky Software Architect [EMAIL PROTECTED]
