I was looking for this a while back and I finally just decided to see if there was a plugin that beautified the WordPress output. Seems that’s all I needed to do! This isn’t groundbreaking but it sure is a nice loose end to tie up when you spend so much time trying to get your code proper and valid!