mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GwR change id to calibre_jacket
This commit is contained in:
parent
81d8ac6dbf
commit
d215bd4b46
@ -289,7 +289,7 @@ class CSSFlattener(object):
|
||||
|
||||
if (self.context.remove_paragraph_spacing or
|
||||
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 edge in ('top', 'bottom'):
|
||||
cssdict['%s-%s'%(prop, edge)] = '0pt'
|
||||
|
@ -181,7 +181,7 @@ class Jacket(object):
|
||||
|
||||
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
|
||||
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user