Mercurial > genshi > mirror
changeset 271:370fa02591a8 trunk
Still too much whitespace in the [WebPy web.py] example. Switch to printing the whole output at once.
author | cmlenz |
---|---|
date | Wed, 27 Sep 2006 09:22:46 +0000 |
parents | d9d3b844442b |
children | f17bde33c1a6 |
files | examples/webpy/hello.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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__':