Fix bug with removal of footnotes in preview
This commit is contained in:
parent
60a60ace18
commit
d60516420b
@ -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)
|
||||||
|
Reference in New Issue
Block a user