Actually the W3 validator has an option to output a Tidy source. I've used it, but it can be dangerous. For example, if you embed a div in a paragraph by accident, the Tidy source, rather that switching them, will simply delete them both. That's the trouble when you let the computer think for you. I just go through line by line and fix errors I see by hand now.