mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #804755 ([Enhancement] Convert ePub Start Tag Correctly)
This commit is contained in:
parent
3117c0d867
commit
8291a849a0
@ -36,5 +36,8 @@ class Clean(object):
|
|||||||
href = urldefrag(self.oeb.guide[x].href)[0]
|
href = urldefrag(self.oeb.guide[x].href)[0]
|
||||||
if x.lower() not in ('cover', 'titlepage', 'masthead', 'toc',
|
if x.lower() not in ('cover', 'titlepage', 'masthead', 'toc',
|
||||||
'title-page', 'copyright-page', 'start'):
|
'title-page', 'copyright-page', 'start'):
|
||||||
|
item = self.oeb.guide[x]
|
||||||
|
if item.title and item.title.lower() == 'start':
|
||||||
|
continue
|
||||||
self.oeb.guide.remove(x)
|
self.oeb.guide.remove(x)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user