I have the following code snippet, which is being migrated from 1.3.4 to
2.0b5:

<DL>
[- $prev_page_id = 0 -]
[$ while $figure = $query->fetchrow_hashref() $]
   [$ if $figure->{page_id} != $prev_page_id $]
      [$ if $prev_page_id $]
         </UL>           <---------- ERROR LINE
         <P>
      [$ endif $]
      <DT><H3>[- $subs->contents_entry ($figure) -]</H3>
      <UL>
   [$ endif $]
   <LI>Blah blah blah
   [- $prev_page_id = $figure->{page_id} -]
[$ endwhile $]
[$ if $prev_page_id $]
   </UL>
[$ endif $]
</DL>

This page works fine in 1.3.4, but fails with 2.0b5:

[2422]ERR: 49: index.html(32): Endtag '/ul' doesn't match starttag 'dl'

The line in question is the first </UL>, which is out of sequence in the
source code but will be placed in sequence in the output. The code does
compile ok when I munge the code to put all tags in "correct" nested
sequence. I realize that 2.0b5 requires nesting to be correct, but
surely this only applies to the final output, not to the source code?
The conditionals and loops such as what I have above will often contain
situations such as this.

I have checked the output from the page under 1.3.4, and the HTML
appears to be formatted correctly.

Is this a bug, or am I doing something wrong here?

TIA

-Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to