fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change default cover.
[librarian.git]
/
src
/
librarian
/
elements
/
footnotes
/
__init__.py
diff --git
a/src/librarian/elements/footnotes/__init__.py
b/src/librarian/elements/footnotes/__init__.py
index
433e881
..
e18eaae
100644
(file)
--- a/
src/librarian/elements/footnotes/__init__.py
+++ b/
src/librarian/elements/footnotes/__init__.py
@@
-5,6
+5,16
@@
from ..base import WLElement
class Footnote(WLElement):
class Footnote(WLElement):
+ NO_TOC = True
+ START_INLINE = True
+ ASIDE = True
+
+ def signal(self, signal):
+ if signal == 'INLINE':
+ self.START_INLINE = False
+ else:
+ super().signal(signal)
+
def txt_build(self, builder):
pass
def txt_build(self, builder):
pass
@@
-72,7
+82,7
@@
class Footnote(WLElement):
builder.enter_fragment('footnotes')
builder.enter_fragment('footnotes')
- builder.start_element('
p
', {
+ builder.start_element('
div
', {
'id': f'annotation-{fn_no}',
'class': "annotation"
})
'id': f'annotation-{fn_no}',
'class': "annotation"
})