mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Edit Book: When creating an NCX file from the Edit Table of Contents tool, do not use uuids for element ids
This commit is contained in:
parent
f415c6ad80
commit
7a75352d47
@ -422,7 +422,7 @@ def create_ncx(toc, to_href, btitle, lang, uid):
|
||||
def process_node(xml_parent, toc_parent):
|
||||
for child in toc_parent:
|
||||
play_order['c'] += 1
|
||||
point = etree.SubElement(xml_parent, NCX('navPoint'), id=uuid_id(),
|
||||
point = etree.SubElement(xml_parent, NCX('navPoint'), id='num_%d' % play_order['c'],
|
||||
playOrder=str(play_order['c']))
|
||||
label = etree.SubElement(point, NCX('navLabel'))
|
||||
title = child.title
|
||||
|
Loading…
x
Reference in New Issue
Block a user