[OT] HTML tags optimization

bruno modulix onurb at xiludom.gro
Fri Sep 2 09:05:39 EDT 2005


DENG wrote:
(snip same post as two days ago)

<ot>
In case you don't know, google.groups is just a web interface (and
archive) to usenet groups. No need to repost the same question twice...
</ot>

BTW, for what you want to do (which is mostly a waste of time IMHO, but
what, that's your time, not mine), the obvious, CS101 answer is to first
build an AST of your document, then transform this AST - collapsing
nodes when possible etc -, then write it back as (if possible valid) html.


-- 
bruno desthuilliers
ruby -e "print 'onurb at xiludom.gro'.split('@').collect{|p|
p.split('.').collect{|w| w.reverse}.join('.')}.join('@')"



More information about the Python-list mailing list