[ZPT] whitespace

Clemens Robbenhaar zpt@zope.org
Tue, 19 Nov 2002 21:29:28 +0100


 > 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>
 > 
 > What will?

 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>

works for me, using Zope2.6.0

Clemens