Re: [Zope] tal:attributes and extra newline
Andreas Jung wrote: --On Montag, 18. April 2005 17:55 Uhr +0200 Pascal Peregrina [EMAIL PROTECTED] 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 [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] tal:attributes and extra newline
--On Montag, 18. April 2005 16:31 Uhr +0200 Pascal Peregrina [EMAIL PROTECTED] 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... -aj pgpFkPGB5PiNi.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
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:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 ** ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] tal:attributes and extra newline
--On Montag, 18. April 2005 17:55 Uhr +0200 Pascal Peregrina [EMAIL PROTECTED] 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 pgp4qXCB85kuK.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] tal:attributes and extra newline
Ok, silly question then... :) Let's stop this thread now. Thanks for the answers. Pascal -Message d'origine- De : Fred Drake [mailto:[EMAIL PROTECTED] Envoyé : lundi 18 avril 2005 18:04 À : Pascal Peregrina Cc : zope@zope.org Objet : Re: [Zope] tal:attributes and extra newline On 4/18/05, Pascal Peregrina [EMAIL PROTECTED] 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 ** 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 ** ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )