mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:53:09 +02:00
Fix nasty recursion bug.
This commit is contained in:
parent
6ad3575579
commit
07bc32118b
1 changed files with 1 additions and 1 deletions
|
|
@ -1954,7 +1954,7 @@ def _generate_ctoc(self):
|
|||
first = False
|
||||
else :
|
||||
self._oeb.logger.info('Generating flat CTOC ...')
|
||||
for (i, child) in enumerate(toc.iter()):
|
||||
for (i, child) in enumerate(toc.iterdescendants()):
|
||||
# Only add chapters or articles at depth==1
|
||||
# no class defaults to 'chapter'
|
||||
if child.klass is None : child.klass = 'chapter'
|
||||
|
|
|
|||
Loading…
Reference in a new issue