templates  

Re: [Templates] Removing even more whitespace

Simon Wilcox
Sun, 29 Jan 2006 10:37:35 -0800

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 ?

Simon.

-- 
"They tend to come out a colour called 'Pants left in wash' "


_______________________________________________
templates mailing list
templates@template-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/templates