- document.edoc.getroot().set('data-cover-width', str(cover.width))
- document.edoc.getroot().set('data-cover-height', str(cover.height))
- if cover.uses_dc_cover:
+ the_cover = cover(document.book_info)
+ document.edoc.getroot().set('data-cover-width', str(the_cover.width))
+ document.edoc.getroot().set('data-cover-height', str(the_cover.height))
+ if the_cover.uses_dc_cover: