bit longer author field
[librarian.git] / src / librarian / elements / footnotes / __init__.py
index 433e881..76be8e8 100644 (file)
@@ -1,10 +1,20 @@
-# -*- coding: utf-8
-from __future__ import unicode_literals
-
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
 from ..base import WLElement
 
 
 class Footnote(WLElement):
 from ..base import 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"
         })