mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 23:05:53 +01:00
...
This commit is contained in:
parent
5440e0c377
commit
d69ed5e980
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue