[ZPT] whitespace bug

Chris Withers chrisw@nipltd.com
Wed, 20 Nov 2002 10:30:19 +0000


Clemens Robbenhaar wrote:
>  > Suppose I want to generate this:
>  > 
>  >   <span>0</span><span>1</span><span>2</span>
>  > 
>  > That is, I don't want any whitespace between generated elements.
>  > 
>  > This won't work:
>  > 
>  >   <span tal:repeat="n python:range(3)" tal:content="n"></span>

It should, IMNSHO. Can you file a collector issue at http://collector.zope.org?

>  Add a dummy tag around the one using for repetition, e.g.
> 
> <tal:block><span tal:repeat="n python:range(3)" tal:content="n"></span></tal:block>

That's pretty weird. I wonder why wrapping the tag in a useless block causes 
whitespace not to be emitted?

*grumble* bug *grumble*

Chris