[ZPT] Re: Weird ZPT macro bug

Andreas Jung andreas@andreas-jung.com
Mon, 07 Oct 2002 18:17:18 +0200


Thanks Evan,

wouldn't I be possible to make this exception more readable?
It is hard to figure out the problem from the current exception.

Andreas

--On Montag, 7. Oktober 2002 11:11 -0500 Evan Simpson <evan@4-am.com> wrote:

> Andreas Jung wrote:
>> When I replace the 'pre' tag by a 'div' tag
>>
>>     <div metal:define-macro="transcript_plain">
>>       <p tal:repeat="entry here/transcript">
>>         <div tal:content="entry/getComment"> </div>
>>       </p>
>>     </div>
>
> HTMLTALParser considers <div> tags, but not <pre> tags, to be "above"
> paragraph level, so they will implicitly close a <p> tag that you meant
> to nest them in, leaving the </p> tag orphaned.
>
> You could use a <span> tag instead of <div>, in this case.  In general,
> you can use <tal:foo> tags, where 'foo' is whatever you like.
>
> Cheers,
>
> Evan @ 4-am
>
>