From c6d7e31ea185da3f841f67dace3fc3aed4f68da3 Mon Sep 17 00:00:00 2001 From: "Marshall T. Vandegrift" Date: Fri, 12 Dec 2008 10:10:48 -0500 Subject: [PATCH] Fix stupid buf in NCX-generation. --- src/calibre/ebooks/lit/oeb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/lit/oeb.py b/src/calibre/ebooks/lit/oeb.py index 39b0c286e5..18eca37720 100644 --- a/src/calibre/ebooks/lit/oeb.py +++ b/src/calibre/ebooks/lit/oeb.py @@ -462,9 +462,9 @@ class TOC(object): 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]