X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e17ce23224e5923b782f6323391bc40c801559e9..175c5cf4f727162fa5bddd2460d37595251bbe8e:/src/librarian/elements/footnotes/__init__.py diff --git a/src/librarian/elements/footnotes/__init__.py b/src/librarian/elements/footnotes/__init__.py index 433e881..398fdea 100644 --- a/src/librarian/elements/footnotes/__init__.py +++ b/src/librarian/elements/footnotes/__init__.py @@ -5,6 +5,15 @@ from ..base import WLElement class Footnote(WLElement): + NO_TOC = True + START_INLINE = True + + def signal(self, signal): + if signal == 'INLINE': + self.START_INLINE = False + else: + super().signal(signal) + def txt_build(self, builder): pass @@ -72,7 +81,7 @@ class Footnote(WLElement): builder.enter_fragment('footnotes') - builder.start_element('p', { + builder.start_element('div', { 'id': f'annotation-{fn_no}', 'class': "annotation" })