What I call garbage code (green boxes are ones I change, red are ones I strip out completely):
My cleaned up code:
I'm not saying Calibre isn't a good program, it works really great for what it does. I just like my epub code to be as clean as I can get it and still have my ebooks as close as possible to the printed material.