If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    thadeusb  15 years ago
    Alternatively if you have utidy installed... def utidy(d): if not isinstance(d, dict): d = d() import tidy pretty = dict(output_xhtml=1, add_xml_decl=1, indent=1, tidy_mark=1, wrap=0, ) if True: #if you want to compress pretty['indent'] = 0 return tidy.parseString(response.render(d), **pretty) response._caller = utidy

Commented on:

Remove the excess blank lines that the web2py rendering engine puts in its output.

Hosting graciously provided by:
Python Anywhere