fix(ldoc.ltp): item.inherited can be wrongly true

For some even more strange reasons than commit 047729ae1, it seems
we can also have the error that `item.inherited` can be sets to `true`
on items that are not inherited...

I just had this issue with `wibox.widget.imagebox` where properties
were marked as inherited from `wibox.widget.imagebox`. Best way to fix
it is to only trust the check on `item.baseclass`, and completly
dismiss its `inherited` property.
This commit is contained in:
Aire-One 2021-03-28 18:47:56 +02:00
parent 0ae0add45f
commit bc8a5b0230
1 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@
# end
# for item in iter(k.items) do if not item.tags.hidden then
# local dn = display_name(item)
# local inherited = item.inherited or (item.baseclass ~= module.name)
# local inherited = (item.baseclass ~= module.name)
# if item.sanitize_type then item.sanitize_type(item, ldoc) end
<tr>
# if item.display_type and not item.compact_signature then
@ -333,7 +333,7 @@
<span class="proptype">$(item.display_type)</span>
# end
<span class="baseclass" $(nowrap)>
# if item.inherited or (item.baseclass ~= module.name) then
# if item.baseclass ~= module.name then
&middot;&nbsp;Inherited from $(M(item.baseclass, item))
# end
# if item.extra_summary then