RE: [Zope] tal:attributes and extra newline
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@andreas-jung.com] Envoyé : lundi 18 avril 2005 16:57 À : Pascal Peregrina; 'zope@zope.org' Objet : Re: [Zope] tal:attributes and extra newline --On Montag, 18. April 2005 16:31 Uhr +0200 Pascal Peregrina <Pperegrina@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 **********************************************************************
--On Montag, 18. April 2005 17:55 Uhr +0200 Pascal Peregrina <Pperegrina@Lastminute.com> wrote:
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 ?
It could be 42 or 120 or 800 :-) -aj
Andreas Jung wrote:
--On Montag, 18. April 2005 17:55 Uhr +0200 Pascal Peregrina <Pperegrina@Lastminute.com> wrote:
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 ?
It could be 42 or 120 or 800 :-)
And it *really* should be 42. -- Bruno Desthuilliers Développeur bruno@modulix.org
On 4/18/05, Pascal Peregrina <Pperegrina@lastminute.com> wrote:
So, just to know, why is the default value 60 ?
I think just because Guido wrote it that way. I don't know that there's anything special about the value. -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> Zope Corporation
participants (4)
-
Andreas Jung -
bruno modulix -
Fred Drake -
Pascal Peregrina