This commit is contained in:
Kovid Goyal 2009-07-06 18:28:54 -06:00
parent 3bb5d82da6
commit 4158655b62

View File

@ -1917,18 +1917,18 @@ class MobiWriter(object):
self._ctoc_map.append(ctoc_name_map) self._ctoc_map.append(ctoc_name_map)
def _generate_ctoc(self): def _generate_ctoc(self):
# Generate the compiled TOC strings # Generate the compiled TOC strings
# Each node has 1-4 CTOC entries: # Each node has 1-4 CTOC entries:
# Periodical (0xDF) # Periodical (0xDF)
# title, class # title, class
# Section (0xFF) # Section (0xFF)
# title, class # title, class
# Article (0x3F) # Article (0x3F)
# title, class, description, author # title, class, description, author
# Chapter (0x0F) # Chapter (0x0F)
# title, class # title, class
# nb: Chapters don't actually have @class, so we synthesize it # nb: Chapters don't actually have @class, so we synthesize it
# in reader._toc_from_navpoint # in reader._toc_from_navpoint
toc = self._oeb.toc toc = self._oeb.toc
reduced_toc = [] reduced_toc = []