mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
151885cb89
commit
5721f39597
@ -21,8 +21,11 @@ def get_highlighted_toc_nodes(toc, parent_map, id_map):
|
||||
ans = {}
|
||||
if data.has_visible:
|
||||
ans = data.visible_anchors
|
||||
elif data.before:
|
||||
else:
|
||||
if data.before:
|
||||
ans[data.before] = True
|
||||
else:
|
||||
pass # TODO: implement this
|
||||
for node_id in Object.keys(ans):
|
||||
pid = parent_map[node_id]
|
||||
while pid:
|
||||
|
Loading…
x
Reference in New Issue
Block a user