X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0c558e1334b5b124eb0d789682eb8f4554ae17cb..1e1abb45277301597bcbb54d17675330bedd7fc5:/src/librarian/elements/footnotes/__init__.py diff --git a/src/librarian/elements/footnotes/__init__.py b/src/librarian/elements/footnotes/__init__.py index 82f6497..6e00385 100644 --- a/src/librarian/elements/footnotes/__init__.py +++ b/src/librarian/elements/footnotes/__init__.py @@ -6,6 +6,9 @@ class Footnote(WLElement): pass def html_build(self, builder): + if not builder.with_footnotes: + return + builder.footnote_counter += 1 fn_no = builder.footnote_counter footnote_id = 'footnote-idm{}'.format(self.attrib['_compat_ordered_id'])