mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6e6ca80d62
commit
7a50e5cb5c
@ -243,7 +243,7 @@ def get_annot_id_for(node, offset, annot_id_uuid_map):
|
|||||||
if not node:
|
if not node:
|
||||||
return
|
return
|
||||||
if node.nodeType is Node.ELEMENT_NODE:
|
if node.nodeType is Node.ELEMENT_NODE:
|
||||||
if node.dataset.calibreRangeWrapper:
|
if node.dataset?.calibreRangeWrapper:
|
||||||
return annot_id_uuid_map[node.dataset.calibreRangeWrapper]
|
return annot_id_uuid_map[node.dataset.calibreRangeWrapper]
|
||||||
if offset is 0:
|
if offset is 0:
|
||||||
if node.firstChild?.nodeType is Node.ELEMENT_NODE and node.firstChild.dataset?.calibreRangeWrapper:
|
if node.firstChild?.nodeType is Node.ELEMENT_NODE and node.firstChild.dataset?.calibreRangeWrapper:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user