[ZPT] whitespace bug
Chris Withers
chrisw@nipltd.com
Fri, 22 Nov 2002 09:27:41 +0000
Martijn Pieters wrote:
> On Thu, Nov 21, 2002 at 10:57:13AM +0000, Chris Withers wrote:
>
>>There's no space between the <span> and the </span>, so why should any be
>>included in the output?
>
> No additional whitespace is included between the opening and closing span
> tags other than that present in the inserted content.
Ah, yes, sorry, my mistake.
> The whitespace I was talking about was that *surrounding* the span tags; the
> whitespace before the <span> tag and after the </span> tag.
I guess so :-S
> Because whitespace between tags is significant in browsers. Sometimes you
> don't want the spaces, sometimes you do. Especially when you place the tag
> on its own line, the original (unrendered) template will show whitespace
> around that item.
Yeah, I can see this now. It does feel kinda odd though...
>>>Putting the repeated tag directly inside another eliminated the whitespace
>>>(including the newline) and was thus not repeated.
>>
>>Is that documented anywhere?
>
> I don't know.
It probably should be. If someone can point me to the right place, I'll give it
a go...
cheers,
Chris