Well, I do use tidy to strip out all the extraneous whitespace in my HTML, and to make sure I've got all the /> in empty tags in place. And check other things like that.
I've also got a wee script that I use to strip all trailing whitespace off all lines in a text file.