# HG changeset patch # User cmlenz # Date 1159348966 0 # Node ID 370fa02591a826b919ef503216ac61bc7971de36 # Parent d9d3b844442b5ffbacc5c6792fda8f39696607ab Still too much whitespace in the [WebPy web.py] example. Switch to printing the whole output at once. diff --git a/examples/webpy/hello.py b/examples/webpy/hello.py --- a/examples/webpy/hello.py +++ b/examples/webpy/hello.py @@ -19,8 +19,7 @@ stream = tmpl.generate(name=name, times=int(i.times)) web.header('Content-Type', 'text/html; charset=utf-8', unique=True) - for output in stream.serialize('html'): - print output.encode('utf-8'), + print stream.render('html') if __name__ == '__main__':