mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7e63bd6da3
commit
4224b8bf3b
@ -314,7 +314,7 @@ class KF8Writer(object):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# Flatten the ToC into a depth first list
|
# Flatten the ToC into a depth first list
|
||||||
fl = toc.iter() if is_periodical else toc.iterdescendants()
|
fl = toc.iterdescendants()
|
||||||
for i, item in enumerate(fl):
|
for i, item in enumerate(fl):
|
||||||
entry = {'id': id(item), 'index': i, 'href':item.href or '',
|
entry = {'id': id(item), 'index': i, 'href':item.href or '',
|
||||||
'label':(item.title or _('Unknown')),
|
'label':(item.title or _('Unknown')),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user