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:
parent
7288f85e9a
commit
003100d3c4
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user