mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Kepubs should follow epub rules for covers and ToC
From http://www.mobileread.com/forums/showthread.php?p=3421577#post3421577, when an epub is converted to kepub, if the ToC had an entry pointing to the cover, it is removed. This does not happen when doing an epub-to-epub conversion. Found that the Plumber was treating epubs specially for this, so added kepub as another exception.
This commit is contained in:
parent
ca43551cd9
commit
1c053ef615
@ -1111,7 +1111,7 @@ OptionRecommendation(name='search_replace',
|
|||||||
pr(0.35)
|
pr(0.35)
|
||||||
self.flush()
|
self.flush()
|
||||||
|
|
||||||
if self.output_plugin.file_type != 'epub':
|
if self.output_plugin.file_type not in ('epub', 'kepub'):
|
||||||
# Remove the toc reference to the html cover, if any, except for
|
# Remove the toc reference to the html cover, if any, except for
|
||||||
# epub, as the epub output plugin will do the right thing with it.
|
# epub, as the epub output plugin will do the right thing with it.
|
||||||
item = getattr(self.oeb.toc, 'item_that_refers_to_cover', None)
|
item = getattr(self.oeb.toc, 'item_that_refers_to_cover', None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user