docs: Strip duplicate inherited events

This commit is contained in:
Andy Williams 2017-12-11 22:30:21 +00:00
parent c976f16606
commit dc13197895
1 changed files with 5 additions and 0 deletions

View File

@ -959,6 +959,11 @@ local build_evtable = function(f, tcl, tbl, newm)
end
end
table.sort(nt, function(v1, v2) return v1[1] < v2[1] end)
for i = #nt, 1, -1 do
if i ~= 1 and nt[i][1] == nt[i - 1][1] then
table.remove(nt, i)
end
end
for i, item in ipairs(nt) do
-- name
f:write_raw(item[1])