Wouter van Marle
wouter at squirrel-systems.com
Wed May 11 23:53:03 EDT 2005
On Wed, 2005-05-11 at 23:49 -0400, Gregory (Grisha) Trubetskoy wrote: > > On Wed, 11 May 2005, Jim Gallacher wrote: > > > You found one of the warts in psp. Since your for loop contains no further > > python statements, the parser gets confused. Try adding a single comment at > > the beginning of your for loop: > > > > <p> some text for the page </p> > > <% > > for r in Results: > > # begin indentation - comment fixes the syntax error > > %> > > I got the result <%=r%><br> > > <% > > # end indentation > > %> > > > Actually, (IIRC purposely undocumented), PSP is smart enough to guess that > a if code ends on a ":" you mean to start a new block. I have found documentation where this is indeed confirmed; a line ending in a colon (:) starts an indentation. Wouter. > > Grisha > >
|