have you tried to go to the Commands menu and Apply Source Formatting it can help clean things up a bit. although dreamweaver is notorious for creating messy code.