do not prepend class qualifier (Fred:) if the name already contains it
steve donovan
12 years ago
185 | 185 | item.section = this_mod.section.display_name |
186 | 186 | -- if it was a class, then the name should be 'Class:foo' |
187 | 187 | 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 | |
189 | 193 | end |
190 | 194 | section_description = this_mod.section.description |
191 | 195 | else -- otherwise, just goes into the default sections (Functions,Tables,etc) |