This commit is contained in:
Kovid Goyal 2012-05-10 10:25:53 +05:30
parent 7e63bd6da3
commit 4224b8bf3b

View File

@ -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')),