mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-30 03:13:56 +03:00
ExtJS parser: fix for missing div[@class="title"]/a/text()
This commit is contained in:
parent
558220d479
commit
7dd66b62eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user