Fix bug with removal of footnotes in preview

This commit is contained in:
RunasSudo 2020-07-23 22:30:04 +10:00
parent 60a60ace18
commit d60516420b
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -166,6 +166,8 @@ def page_preview(path):
elem.text += child.tail elem.text += child.tail
elem.remove(child) elem.remove(child)
walk_tree(child) walk_tree(child)
else:
walk_tree(child)
last_child = child last_child = child
walk_tree(page_root[0]) walk_tree(page_root[0])