mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
5440e0c377
commit
d69ed5e980
@ -356,7 +356,7 @@ def node_from_loc(root, locs, totals=None):
|
||||
children = tuple(node.iterchildren(etree.Element))
|
||||
if totals is not None and totals[i] != len(children):
|
||||
raise MalformedMarkup()
|
||||
node = children[locs[0]]
|
||||
node = children[loc]
|
||||
return node
|
||||
|
||||
def add_id(container, name, loc, totals=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user