1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 18:22:24 -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 end
add("</header>"); add("</header>");
add(body) add(body)
for i = 1, #sectionstack do for i = #sectionstack, 1, -1 do
add("</section"..sectionstack[i]..">"); add("</section"..sectionstack[i]..">");
end end
add("</xep>\n"); add("</xep>\n");