mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
19a777d34a
commit
00219fde67
@ -176,7 +176,7 @@ def encode(doc, node, offset, tail): # {{{
|
||||
child = child.nextSibling
|
||||
|
||||
# Add id assertions for robustness where possible
|
||||
id = node.getAttribute('id') if node.getAttribute else None
|
||||
id = node.id
|
||||
idspec = ('[' + escape_for_cfi(id) + ']') if id else ''
|
||||
cfi = '/' + index + idspec + cfi
|
||||
node = p
|
||||
|
Loading…
x
Reference in New Issue
Block a user