mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 22:25:13 +01:00
Fix stupid buf in NCX-generation.
This commit is contained in:
parent
e2310c9970
commit
c6d7e31ea1
1 changed files with 2 additions and 2 deletions
|
|
@ -462,9 +462,9 @@ def to_ncx(self, parent, playorder=None, depth=1):
|
|||
point = etree.SubElement(parent,
|
||||
NCX('navPoint'), attrib={'playOrder': str(playorder[0])})
|
||||
if self.klass:
|
||||
point.attrib['class'] = self.klass
|
||||
point.attrib['class'] = node.klass
|
||||
if self.id:
|
||||
point.attrib['id'] = self.id
|
||||
point.attrib['id'] = node.id
|
||||
label = etree.SubElement(point, NCX('navLabel'))
|
||||
etree.SubElement(label, NCX('text')).text = node.title
|
||||
href = node.href if depth > 1 else urldefrag(node.href)[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue