ExtJS parser: fix for missing div[@class="title"]/a/text()

This commit is contained in:
Jerzy Kozera 2014-04-09 13:46:09 +02:00
parent 558220d479
commit 7dd66b62eb

View File

@ -173,7 +173,9 @@ for fname, tree in trees.iteritems():
untypes.add(stype)
idxtype = 'unknown'
for member in section.find_class('member'):
membername = member.xpath('div[@class="title"]/a/text()')[0]
membername = member.xpath('div[@class="title"]/a/text()')
if not len(membername): continue
membername = membername[0]
member.insert(0, fromstring("<a name='//apple_ref/cpp/%s/%s' class='dashAnchor' />" % (idxtype, membername)))
if member.find_class('defined-in')[0].text != fname[:-len('.html')]:
assert member.find_class('defined-in')[0].text + '.html' in trees, member.find_class('defined-in')[0].text