Implement support for parsing ToC from NCX files

This commit is contained in:
Kovid Goyal 2008-02-14 04:49:44 +00:00
parent 2bc40380db
commit 0c61a51a1b

View File

@ -84,7 +84,7 @@ class Spine(object):
class TOC(list): class TOC(list):
def __init__(self, opfreader, cwd): def __init__(self, opfreader, cwd):
self.toc = toc = None self.toc = None
toc = opfreader.soup.find('spine', toc=True) toc = opfreader.soup.find('spine', toc=True)
if toc is not None: if toc is not None:
toc = toc['toc'] toc = toc['toc']