Some of the worst HTML I've seen has been written by tools. Apparently the authors of such tools couldn't fathom that anyone would ever look at and hand-edit the glorious markup produced by, say, MS Word, so they didn't consider readability, brevity, or in some cases correctness to be important. Is that the sort of thing you're dealing with here? Or did someone actually hand-craft this HTML?
(no subject)