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

@ -165,8 +165,10 @@ def page_preview(path):
else: else:
elem.text += child.tail elem.text += child.tail
elem.remove(child) elem.remove(child)
walk_tree(child) walk_tree(child)
last_child = child else:
walk_tree(child)
last_child = child
walk_tree(page_root[0]) walk_tree(page_root[0])
page_content = md.serialise(page_root) page_content = md.serialise(page_root)