Codebase list lua-ldoc / 536ee89
do not prepend class qualifier (Fred:) if the name already contains it steve donovan 12 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
185185 item.section = this_mod.section.display_name
186186 -- if it was a class, then the name should be 'Class:foo'
187187 if this_mod.section.type == 'type' then
188 item.name = this_mod.section.name .. ':' .. item.name
188 local prefix = this_mod.section.name .. ':'
189 local i1,i2 = item.name:find(prefix)
190 if not (i1 == 1 and i2 == #prefix) then
191 item.name = prefix .. item.name
192 end
189193 end
190194 section_description = this_mod.section.description
191195 else -- otherwise, just goes into the default sections (Functions,Tables,etc)