[ZPT] whitespace bug
Chris Withers
chrisw@nipltd.com
Wed, 27 Nov 2002 18:36:28 +0000
Hi Mark,
Sounds like you're in a better position than me to write these docs, care to
give it a go?
cheers,
Chris
Mark McEahern wrote:
> [Chris Withers]
>
>>>>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...
>
>
> A simple section on whitespace in one or more of the following?
>
> http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
>
> http://www.zope.org/Documentation/Books/ZopeBook/current/AdvZPT.stx
>
> http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixC.stx
>
> Here's my braindump on this topic...
>
> Whitespace
> ==========
>
> What is whitespace? Space, tab, newline, carriage return, line feed.
>
> How whitespace is handled in HTML--multiple whitespace is ignored? Other
> output targets? SQL?
>
> Whitespace within a start tag, between attributes, doesn't seem to affect
> output.
>
> <div class='foo'
> name='bar'>Foobar</div>
>
> Is the same as:
>
> <div class='foo' name='bar'>Foobar</div>
>
> Whitespace within a tag ('Foobar' above)...
>
> Whitespace surrounding a tag (before <div> and after </div>)...
>
> Some tags matter more than others. Since <span/> is not a block level tag
> (correct term?), you may be more concerned about whitespace with respect to
> <span/> than with respect to <div/>.
>
> Useless blocks to control whitespace...
>
> This may matter more/most/only with tal:repeat...
>
> Cheers,
>
> // mark
>
> -
>
>