mirror of https://github.com/Hilbis/Hilbish
fix: dont concat subdocs list if on main page
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')))
|
||||
if #moddocs ~= 0 then
|
||||
if #moddocs ~= 0 and f then
|
||||
doc = doc .. '\nSubdocs: ' .. table.concat(subdocs, ', ') .. '\n\n'
|
||||
end
|
||||
if f then f:close() end
|
||||
|
|
Loading…
Reference in New Issue