Yes for this simple example, but in our project, it's a big XSL who generate our LZX files and there are many XSL templates to manage spacing and non breaking space.

Dominic

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 &#0020;, &nbsp; and &#00A0; but I get "|Character reference "&#0020" 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




--
Dominic Marcotte
Programmeur
Groupe de recherche Franqus - A3-118
Université de Sherbrooke
http://franqus.usherbrooke.ca
1 800 267-8337 poste 63234

Reply via email to