trim()

Chuck Esterbrook echuck at mindspring.com
Mon Feb 28 07:27:31 EST 2000


Steve Holden wrote:

> Chuck Esterbrook wrote:
> >
> > I think this is pretty cool. I could use this for the CGI scripts I'm writing where I often have indented HTML. It ends up being indented in the final result which not only looks bad but takes up more bandwidth.
> >
> > Thanks,
> >
> > -Chuck
> >
> > "Michal Wallace (sabren)" wrote:
> >
> > > Hey all,
> > >
> > >   I posted a couple days ago about actually needing a whitespace-eating
> > > nanovirus.. And ever since I built it, I've been using it almost every
> > > day for text processing... Being able to indent triple-quoted-string
> > > is a really really nice feature:
> > >
> [Michal's whitespace-eating nanovirus]
> -------------------------------------------
>
> On the plus side, in HTML there's no tabnannny to check whether you are using
> tabs or spaces (or how many of which) to indent your "code".  As far as I'm
> concerned optimising HTML is a kindness, not a duty!

I basically agree, but I often look at my generated HTML when I'm working on bugs and HTML is already heinously inefficient as it is. I don't want to contribute to an already bad situation.

-Chuck





More information about the Python-list mailing list