mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-21 15:12:58 +02:00
Fix #821635 (rtf to mobi coversion regression in 0.8.13)
This commit is contained in:
parent
99fec62ddc
commit
902a50c711
1 changed files with 0 additions and 1 deletions
|
|
@ -1710,7 +1710,6 @@ def _flatten_toc(self):
|
|||
'''
|
||||
from calibre.ebooks.oeb.base import TOC
|
||||
items = list(self._oeb.toc.iterdescendants())
|
||||
items = [i for i in items if i.depth == 1]
|
||||
offsets = {i:self._id_offsets.get(i.href, -1) for i in items if i.href}
|
||||
items = [i for i in items if offsets[i] > -1]
|
||||
items.sort(key=lambda i:offsets[i])
|
||||
|
|
|
|||
Loading…
Reference in a new issue