close <ul> and <pre> at end of file

This commit is contained in:
sejo 2022-01-10 11:28:41 -06:00
parent 7a4cf173f9
commit 6f96dae334
1 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,8 @@ ARGIND==2 && FNR==1{
function finishfile(){
# finish writing the previous content file
if(is_list){ append("</ul>"); is_list = 0 }
if(is_pre){ append("</pre>"); is_pre = 0 }
out = out "\t</main>\n </body>\n</html>"
print out > nameout
}