def depart_start_of_file(self, node: Element) -> None:
    self.curfilestack.pop()
    self.footnotestack.pop()
def depart_start_of_file(self, node: Element) -> None:
    self.curfilestack.pop()
    self.footnotestack.pop()