[Zope] tal:attributes and extra newline

Pascal Peregrina Pperegrina at Lastminute.com
Mon Apr 18 11:55:11 EDT 2005


Ok, it was TALInterpreter after all, but you need a long list of attributes
(on a single line / single tal:attributes statement I mean)...
It's because of the TAL.TALInterpreter.TALInterpreter.wrap value defaulting
to 60 (see __init__)
I managed, in my object that relies on PageTemplate, to set warp to 0 and I
got no more extra newlines.

So, just to know, why is the default value 60 ?

Pascal


-----Message d'origine-----
De : Andreas Jung [mailto:lists at andreas-jung.com]
Envoyé : lundi 18 avril 2005 16:57
À : Pascal Peregrina; 'zope at zope.org'
Objet : Re: [Zope] tal:attributes and extra newline




--On Montag, 18. April 2005 16:31 Uhr +0200 Pascal Peregrina 
<Pperegrina at Lastminute.com> wrote:

> Hi,
>
> I would like to know the reason why tal:attributes adds an extra newline
> for each generated tag attribute.
> This just makes generated HTML bigger...

It generates *only newlines if *you* generate multiple attributes using a
single tal:attributes statement on *multiple* lines...so it's your 
application..

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



More information about the Zope mailing list