Setting this style in CSS should fix this issue:

white-space: pre
or
white-space: pre-wrap

More options here: https://www.w3schools.com/cssref/pr_text_white-space.asp

Thanks,
Om

2017-02-16 10:39 GMT-08:00 Carlos Rovira <carlos.rov...@codeoscopic.com>:

> Hi Justing, I think this is the normal way HTML works.
> HTML removes whitespaces. If you put lots of whitespace, HTML will remove
> them.
> So I think no much to do there for this kind of trys
>
> 2017-02-16 7:15 GMT+01:00 Justin Mclean <jus...@classsoftware.com>:
>
> > Hi,
> >
> > This:
> > <js:HContainer>
> >     <js:Label text=“Hello, ">
> >         <js:style>
> >             <js:SimpleCSSStyles fontWeight="bold" />
> >         </js:style>
> >     </js:Label>
> >     <js:Label text=“world">
> >         <js:style>
> >             <js:SimpleCSSStyles />
> >         </js:style>
> >     </js:Label>
> > </js:HContainer>
> >
> > Gives this: (removing the space)
> > Hello,world
> >
> > Rather than the expected:
> > Hello, world
> >
> > In this case you could of course do something like this (although it's
> not
> > quite the same):
> >
> > <js:Label html=“&lt;b&gt;Login&lt;/b&gt;, to access your management
> > tools” />
> >
> > But there are other cases where this is not so easy to solve and spaces
> > are needed on either side.
> >
> > Is there any reason text labels are trimmed? Is this a bug?
> >
> > Thanks,
> > Justin
>
>
>
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> necesaria.
>

Reply via email to