[mod_python] Indentation problems with psp

Erik Thompson mrlobster99 at gmail.com
Fri Dec 22 17:20:37 EST 2006


>
> <%
> if os.path.exists("boroughs.txt"):
>         #Start indentation
>         %><select name="Borough"><%
>
>         for item in sorted:
>                 #start indentation
>                 %><option value="<%= item%>"> <%= item%>-<%=
> lookup[item]%>
> <%
> #End if statement
> %>
>

I think you just need to bring the <% down a line:
<%
if os.path.exists("boroughs.txt"):
        #Start indentation
        %><select name="Borough">
<%
        for item in sorted:
                #start indentation
                %><option value="<%= item%>"> <%= item%>-<%= lookup[item]%>
<%
#End if statement
%>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20061222/d2823517/attachment.html


More information about the Mod_python mailing list