Sharepoint Designer adding unnecessary closing tags

Ever noticed that Sharepoint Designer sometimes adds an extra closing

or

to your files, so you end up with: