A friend here at Fishpool made a simple HTML generation library in XOTcl which does automatic indentation and generally makes code that deals with HTML much neater. Currently it's all based around a HtmlDocument class, which can be used to build a whole document or parts of a document (which can then be added to other HtmlDocuments). Naturally this can be extended with for things like tables, forms and whatever, although it already includes methods for some of those.
I'm sure it might make the xodoc source code a lot cleaner (and I've been tempted to stick it in there when editing it) :-)
If anyone is interested, do check it out:
http://dev.fishpool.fi/oss/htmllib/
- ---------- = = ---------//--+ | / Kristoffer Lawson | www.fishpool.fi|.com +-> | setok@fishpool.com | - - --+------ |-- Fishpool Creations Ltd - / | +-------- = - - - = --------- /~setok/