Je 2006-01-29 18:36:09 +0000, Simon Wilcox skribis:
> On Sun, 29 Jan 2006, Paul Makepeace wrote:
> 
> > <td>
> > [% IF 1 %]
> >   <img src="foo.jpg">
> > [% END %]
> > </td>
> >
> > the best I can get (with POST_CHOMP and FILTER collapse) is,
> >
> >   <td> <img src="foo.jpg"></td>
> >
> > That extra space between the td and img can damage the rendering.
> 
> Isn't that extra space in there explicitly ? Shouldn't you write
> 
> <td>
> [% IF 1 %]
> <img src="foo.jpg">
> [% END %]
> </td>
> 
> i.e. with no indent of the img tag ?

Yeah, that's one way but I hardly ever see unindented HTML or unindented
template code (and wouldn't want to maintain that anyway!). Besides it
would also require a degree of rewriting of the code and partly this
exercise is to demonstrate how easy it is to convert PHP to Template ;)

(Which in fairness, besides this bit, it has been.)

P

-- 
Paul Makepeace .............................. http://paulm.com/inchoate/

"What is that sun doing in that sky? The unforgiven."
   -- http://paulm.com/toys/surrealism/

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to