fix: dont concat subdocs list if on main page

pull/240/head
sammyette 2023-10-24 23:52:53 -04:00
parent 7288f85e9a
commit 003100d3c4
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

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')))
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