From: Radek Czajka Date: Fri, 4 Oct 2024 11:10:23 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/b1376392167c09775bf57b41cb9ea3016f06cfb8?ds=inline fix --- diff --git a/src/librarian/builders/html.py b/src/librarian/builders/html.py index 5bbe76a..0b063c6 100644 --- a/src/librarian/builders/html.py +++ b/src/librarian/builders/html.py @@ -127,7 +127,7 @@ class HtmlBuilder: if self.with_toc: add_table_of_contents(self.tree) - if self.document.counters['fn'] > 1: + if len(self.footnotes): fnheader = etree.Element("h3") fnheader.text = _("Footnotes") self.footnotes.insert(0, fnheader)