Sorry you had this problem. We're talking about ways to handle it.
In the future, it might save you time debugging this sort of thing to look at the python code that PSP generates. You'll find it in the Cache/PSP directory. Jay On Mon, 2001-12-24 at 04:12, Frank Barknecht wrote: > Hi, > > the following problem has cost me hours: Is it a bug, or did I > misinterpret the PSP documentation? > > In PSPages (0.6.1-beta), this doesn't work and gives an Indentation > Error: > > <% for i in range(5): %> > <% if i > 2: %> > Hi, i'm a big number <%= i %><br> > <% end %> > <% else: %> > Hi, i'm rather small <%= i %><br> > <% end %> > <% end %> > > but if I put the "else" right after the "end" it does work: > > <% for i in range(5): %> > <% if i > 2: %> > Hi, i'm a big number <%= i %><br> > <% end %><% else: %> > Hi, i'm rather small <%= i %><br> > <% end %> > <% end %> > > I think, the first version looks much better and more natural to me, > doesn't it? > > Ciao, > -- > __ __ > Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______ > / __// __ /__/ __// // __ \ \/ / __ \\ ___\ > / / / ____/ / / / // ____// /\ \\ ___\\____ \ > /_/ /_____/ /_/ /_//_____// / \ \\_____\\_____\ > /_/ \_\ > > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
