From b1376392167c09775bf57b41cb9ea3016f06cfb8 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 4 Oct 2024 13:10:23 +0200 Subject: [PATCH] fix --- src/librarian/builders/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1