mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix stupid buf in NCX-generation.
This commit is contained in:
parent
e2310c9970
commit
c6d7e31ea1
@ -462,9 +462,9 @@ class TOC(object):
|
|||||||
point = etree.SubElement(parent,
|
point = etree.SubElement(parent,
|
||||||
NCX('navPoint'), attrib={'playOrder': str(playorder[0])})
|
NCX('navPoint'), attrib={'playOrder': str(playorder[0])})
|
||||||
if self.klass:
|
if self.klass:
|
||||||
point.attrib['class'] = self.klass
|
point.attrib['class'] = node.klass
|
||||||
if self.id:
|
if self.id:
|
||||||
point.attrib['id'] = self.id
|
point.attrib['id'] = node.id
|
||||||
label = etree.SubElement(point, NCX('navLabel'))
|
label = etree.SubElement(point, NCX('navLabel'))
|
||||||
etree.SubElement(label, NCX('text')).text = node.title
|
etree.SubElement(label, NCX('text')).text = node.title
|
||||||
href = node.href if depth > 1 else urldefrag(node.href)[0]
|
href = node.href if depth > 1 else urldefrag(node.href)[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user