[Twisted-web] [Nevow] how to generate XHMTL without whitespaces

Adrian Perez moebius.lists at gmail.com
Mon Sep 25 15:32:59 CDT 2006

On Mon, 25 Sep 2006 22:12:46 +0200
Manlio Perillo <manlio_perillo at libero.it> wrote:

> Adrian Perez ha scritto:
> > On Mon, 25 Sep 2006 19:06:58 +0200
> > Manlio Perillo <manlio_perillo at libero.it> wrote:
> > 
> >> Is it possible (and how) to generate XHTML documents without extra
> >> whitespaces?
> > 
> > No pun intended, just being curious: Do you want that feature for
> > something else than saving a small amount of bandwidth? 
> No, I want this feature to avoid possible problems with whitespaces.

Now I see the point... and now I realize that feature would make some
of my template more readable. Unfortunately I don't know how to
generate code without whitespaces, sorry :-\ 

> > I would prefer
> > generation of properly-indented XHTML as an option, which helps
> > debugging -- but one can always call tidylib from the renderHTTP()
> > method ;-) 
> No, please.
> This can kill the server...

Of course performance would be like a pain in the ass, but I sometimes
do that when checking generated code «by hand», but *only* when
debugging ;-P


I'd like to meet the man who invented sex and see what he's working on

"Experience is what you get when you don't get what you want"
                                           -- (Dan Stanford)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20060925/3297f6ce/signature.pgp

More information about the Twisted-web mailing list