mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
848b3d166e
commit
7cbf2e2a2c
@ -145,8 +145,9 @@ def parse_outline(raw, output_dir):
|
|||||||
parent = toc.children[-1] if toc.children else toc
|
parent = toc.children[-1] if toc.children else toc
|
||||||
process_node(child, parent)
|
process_node(child, parent)
|
||||||
else:
|
else:
|
||||||
|
if child.text:
|
||||||
page = child.get('page', '1')
|
page = child.get('page', '1')
|
||||||
toc.add(child.text or '', 'index.html', 'p' + page)
|
toc.add(child.text, 'index.html', 'p' + page)
|
||||||
count[0] += 1
|
count[0] += 1
|
||||||
process_node(outline, toc)
|
process_node(outline, toc)
|
||||||
if count[0] > 2:
|
if count[0] > 2:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user