'Fix all the brokenness that sphinx\'s epub builder creates'

def fix_epub(self, container):

    for (name, mt) in container.mime_map.iteritems():
        if (mt in OEB_DOCS):
            self.workaround_ade_quirks(container, name)
            pretty_html_tree(container, container.parsed(name))
            container.dirty(name)
    self.fix_opf(container)
