17,273
edits
(split sections into top-level items and groups with second-level items) |
(fix iteration) |
||
Line 89: | Line 89: | ||
-- split sections into top-level items and groups with second-level items | -- split sections into top-level items and groups with second-level items | ||
for _, section in root.sections do | for _, section in ipairs( root.sections ) do | ||
if #section.sections then | if #section.sections then | ||
root.groups[#root.groups + 1] = section | root.groups[#root.groups + 1] = section |