2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-21 04:53:24 +00:00

fix: dont concat subdocs list if on main page

This commit is contained in:
sammyette 2023-10-24 23:52:53 -04:00
parent 7288f85e9a
commit 003100d3c4
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -129,7 +129,7 @@ Available sections: ]] .. table.concat(modules, ', ')
local doc, vals = handleYamlInfo(#args == 0 and doc or formatDocText(f:read '*a':gsub('-([%d]+)', '%1'))) local doc, vals = handleYamlInfo(#args == 0 and doc or formatDocText(f:read '*a':gsub('-([%d]+)', '%1')))
if #moddocs ~= 0 then if #moddocs ~= 0 and f then
doc = doc .. '\nSubdocs: ' .. table.concat(subdocs, ', ') .. '\n\n' doc = doc .. '\nSubdocs: ' .. table.concat(subdocs, ', ') .. '\n\n'
end end
if f then f:close() end if f then f:close() end