Commit 66be03f7 authored by julien's avatar julien

remove empty ol elements at the end of the page

parent 45057f70
......@@ -18,6 +18,9 @@ class Lists extends Handler {
if (list.hasChildNodes()) {
list.start = list.firstElementChild.dataset.itemNum;
}
else {
list.parentNode.removeChild(list);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment