mirror of
https://github.com/zealdocs/zeal.git
synced 2024-12-02 09:44:14 +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)
|
untypes.add(stype)
|
||||||
idxtype = 'unknown'
|
idxtype = 'unknown'
|
||||||
for member in section.find_class('member'):
|
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)))
|
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')]:
|
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
|
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