GwR change id to calibre_jacket

This commit is contained in:
GRiker 2010-09-14 07:31:49 -06:00
parent 81d8ac6dbf
commit d215bd4b46
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ class CSSFlattener(object):
if (self.context.remove_paragraph_spacing or if (self.context.remove_paragraph_spacing or
self.context.insert_blank_line) and tag in ('p', 'div'): self.context.insert_blank_line) and tag in ('p', 'div'):
if item_id != 'jacket' or self.context.output_profile.name == 'Kindle': if item_id != 'calibre_jacket' or self.context.output_profile.name == 'Kindle':
for prop in ('margin', 'padding', 'border'): for prop in ('margin', 'padding', 'border'):
for edge in ('top', 'bottom'): for edge in ('top', 'bottom'):
cssdict['%s-%s'%(prop, edge)] = '0pt' cssdict['%s-%s'%(prop, edge)] = '0pt'

View File

@ -181,7 +181,7 @@ class Jacket(object):
return soup.renderContents() return soup.renderContents()
id, href = self.oeb.manifest.generate('jacket', 'jacket.xhtml') id, href = self.oeb.manifest.generate('calibre_jacket', 'jacket.xhtml')
from calibre.ebooks.oeb.base import RECOVER_PARSER, XPath from calibre.ebooks.oeb.base import RECOVER_PARSER, XPath
try: try: