You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lherm Nicolas <nl...@sqli.com> on 2016/09/12 12:28:24 UTC

WhiteSpace Compress

Hello,

I read in paragraph http://tapestry.apache.org/component-templates.html $ Whitespace in Templates , that Tapestry " compressed" the white -spaces.

In my application , I have repeated whitespace and they are reduced to a single space character . However, I would like to keep those whitespaces on the final rendering.

I try to add at my tml file : xml: space = "preserve " into the <span> however this did not worked .


RE: WhiteSpace Compress

Posted by Bob Harner <bo...@gmail.com>.
Using xml:space="preserve" in the tml file has always worked perfectly for
me. What.version of Tapestry are you using, and can you show us the snippet
of the tml file?
On Sep 12, 2016 8:40 AM, "Lherm Nicolas" <nl...@sqli.com> wrote:

> Nope, I just search a label from a database.
>
>
> Inside the label there is somes whitesspace but it still the label.
>
>
> Ex : the label in the database : "PAC    145" --->  the label in the
> render page "PAC 145" (with firebug i still have the good one in html)
>
> ________________________________
> De : Qbyte Consulting <qb...@gmail.com>
> Envoyé : lundi 12 septembre 2016 14:35:40
> À : Tapestry users
> Objet : Re: WhiteSpace Compress
>
> Even if Tapestry emits the white space, the browser will ignore it. You
> must use &nbsp; to include additional spaces, yes?
>
> On Mon, Sep 12, 2016 at 1:28 PM, Lherm Nicolas <nl...@sqli.com> wrote:
>
> > Hello,
> >
> > I read in paragraph http://tapestry.apache.org/component-templates.html
> $
> > Whitespace in Templates , that Tapestry " compressed" the white -spaces.
> >
> > In my application , I have repeated whitespace and they are reduced to a
> > single space character . However, I would like to keep those whitespaces
> on
> > the final rendering.
> >
> > I try to add at my tml file : xml: space = "preserve " into the <span>
> > however this did not worked .
> >
> >
>

RE: WhiteSpace Compress

Posted by Lherm Nicolas <nl...@sqli.com>.
Nope, I just search a label from a database.


Inside the label there is somes whitesspace but it still the label.


Ex : the label in the database : "PAC    145" --->  the label in the render page "PAC 145" (with firebug i still have the good one in html)

________________________________
De : Qbyte Consulting <qb...@gmail.com>
Envoyé : lundi 12 septembre 2016 14:35:40
À : Tapestry users
Objet : Re: WhiteSpace Compress

Even if Tapestry emits the white space, the browser will ignore it. You
must use &nbsp; to include additional spaces, yes?

On Mon, Sep 12, 2016 at 1:28 PM, Lherm Nicolas <nl...@sqli.com> wrote:

> Hello,
>
> I read in paragraph http://tapestry.apache.org/component-templates.html $
> Whitespace in Templates , that Tapestry " compressed" the white -spaces.
>
> In my application , I have repeated whitespace and they are reduced to a
> single space character . However, I would like to keep those whitespaces on
> the final rendering.
>
> I try to add at my tml file : xml: space = "preserve " into the <span>
> however this did not worked .
>
>

Re: WhiteSpace Compress

Posted by Qbyte Consulting <qb...@gmail.com>.
Even if Tapestry emits the white space, the browser will ignore it. You
must use &nbsp; to include additional spaces, yes?

On Mon, Sep 12, 2016 at 1:28 PM, Lherm Nicolas <nl...@sqli.com> wrote:

> Hello,
>
> I read in paragraph http://tapestry.apache.org/component-templates.html $
> Whitespace in Templates , that Tapestry " compressed" the white -spaces.
>
> In my application , I have repeated whitespace and they are reduced to a
> single space character . However, I would like to keep those whitespaces on
> the final rendering.
>
> I try to add at my tml file : xml: space = "preserve " into the <span>
> however this did not worked .
>
>