1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-22 15:48:52 -05:00

tools/2xep.lua: Fix incorrect order of section close tags

This commit is contained in:
Matthew Wild 2023-06-28 16:14:21 +01:00
parent 675c73c859
commit 56dd1cf33e

View File

@ -126,7 +126,7 @@ function Doc(body, metadata, variables)
end
add("</header>");
add(body)
for i = 1, #sectionstack do
for i = #sectionstack, 1, -1 do
add("</section"..sectionstack[i]..">");
end
add("</xep>\n");