summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-10-30 20:35:16 +0100
committerWuzzy <almikes@aol.com>2016-10-30 20:35:16 +0100
commitd303501443f8282cbee38c919e931e4d8d3f8d6f (patch)
treeeda69725d75620d6b14913bde6264e48443a9a9d /init.lua
parent865a289b1eb4b1b3e4a17e449a284bf31b81efcd (diff)
Allow entry name overwrites again
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 357ae86..549e2a9 100644
--- a/init.lua
+++ b/init.lua
@@ -952,16 +952,21 @@ local function gather_descs()
end
local add_entries = function(deftable, category_id)
+ -- TODO: Remove legacy support: Groups in_doc, not_in_doc; forced_items, help table, etc.
for id, def in pairs(deftable) do
local name, ld, uh, im
local forced = false
if (forced_items[id] == true or def.groups.in_doc or def.x_doc_items_create_entry == true) and def ~= nil then forced = true end
+ if def.x_doc_items_entry_name ~= nil then
+ name = def.x_doc_items_entry_name
+ end
if item_name_overrides[id] ~= nil then
name = item_name_overrides[id]
- else
+ end
+ if name == nil then
name = def.description
end
- if not (name == nil or name == "" or def.groups.not_in_doc or forced_items[id] == false or def.x_doc_items_create_entry == false) or forced then
+ if not (((def.description == nil or def.description == "") and def.x_doc_items_entry_name == nil) or def.groups.not_in_doc or forced_items[id] == false or def.x_doc_items_create_entry == false) or forced then
if def.x_doc_items_longdesc then
ld = def.x_doc_items_longdesc
end