perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Topf <joc...@remote.org>
Subject Re: bug in tables and [* *]
Date Thu, 04 Jul 2002 15:54:58 GMT
On Thu, Jul 04, 2002 at 04:21:45PM +0200, Gerald Richter - ecos gmbh wrote:
> > Take the following table:
> >
> > <table>
> >   <tr>
> >     <td>
> >       XXX
> >     </td>
> >   </tr>
> > [* if ($t) { *]
> >   <tr>
> >     <td>
> >       YYY
> >     </td>
> >   </tr>
> > [* } *]
> > </table>
> >
> > If $t is true it works. If $t is false, the whole contents of the table
> will
> > be skipped, even the XXX part. (This is in 2.0b8)
> >
> 
> Looks like a bug, quick workaround is to either use [$if $] ... [$endif$] or
> to add some text between the } and the end of the table e.g.
> 
> [* } *]
> <!-- -->
> </table>
> 
> in both case it will work. I try to fix the bug for the next release

The <!-- --> solution does work in my little test case but it doesn't work
in all cases. But the [$if $] ... [$endif$] is ok.

Jochen
-- 
Jochen Topf  jochen@remote.org  http://www.remote.org/jochen/  +49-721-388298


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message