This commit is contained in:
Kovid Goyal 2013-02-03 17:03:07 +05:30
parent bf96abd838
commit 22df497cc5

View File

@ -241,7 +241,7 @@ class KF8Writer(object):
j = 0 j = 0
for tag in root.iterdescendants(etree.Element): for tag in root.iterdescendants(etree.Element):
id_ = tag.attrib.get('id', None) id_ = tag.attrib.get('id', None)
if id_ is None: if id_ is None and tag.tag == XHTML('a'):
# Can happen during tweaking # Can happen during tweaking
id_ = tag.attrib.get('name', None) id_ = tag.attrib.get('name', None)
if id_ is not None: if id_ is not None: