Pull from staging

This commit is contained in:
Kovid Goyal 2009-07-21 12:18:37 -06:00
commit 1c2fb111ab

View File

@ -1951,7 +1951,7 @@ class MobiWriter(object):
self._oeb.logger.info('Generating flat CTOC ...')
previousOffset = -1
currentOffset = 0
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'