mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:04:12 +02:00
...
This commit is contained in:
parent
bf96abd838
commit
22df497cc5
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ def insert_aid_attributes(self):
|
|||
j = 0
|
||||
for tag in root.iterdescendants(etree.Element):
|
||||
id_ = tag.attrib.get('id', None)
|
||||
if id_ is None:
|
||||
if id_ is None and tag.tag == XHTML('a'):
|
||||
# Can happen during tweaking
|
||||
id_ = tag.attrib.get('name', None)
|
||||
if id_ is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue