diff --git a/sutta_publisher/src/sutta_publisher/edition_parsers/latex.py b/sutta_publisher/src/sutta_publisher/edition_parsers/latex.py index 4d71a82..aa6a316 100644 --- a/sutta_publisher/src/sutta_publisher/edition_parsers/latex.py +++ b/sutta_publisher/src/sutta_publisher/edition_parsers/latex.py @@ -187,16 +187,7 @@ def _append_foreign_script_macro(self, tag: Tag) -> str: def _append_footnote(self) -> str: if self.endnotes: _endnote = BeautifulSoup(self.endnotes.pop(0), "lxml") - # _contents = _endnote.p.contents if _endnote.p else _endnote.body.contents - if _endnote: - if _endnote.p: - _contents = _endnote.p.contents - elif _endnote.body: - _contents = _endnote.body.contents - else: - _contents = [] - else: - _contents = [] + _contents = _endnote.p.contents if _endnote.p else _endnote.body.contents _data: str = self._process_contents(contents=_contents) return cast(str, Command("footnote", _data).dumps()) else: