You have it.
Clean code, no problem.
You screw up some code while trying for an
effect, tidy can do serious

BTW 'Pretty' mostly neatens the code view (removes extra Non-code, blank lines, cleaner looking tags).
Tidy will *fix* things like missing closing tags. The *fix* is not always what you desire