Basic biblical tools.
[librarian.git] / src / librarian / elements / front / base.py
1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
3 #
4 from ..base import WLElement
5
6
7 class HeaderElement(WLElement):
8     NUMBERING = 'i'
9     HTML_TAG = 'span'
10     FB2_TAG = 'p'
11     
12     def txt_build(self, builder):
13         builder.enter_fragment('header')
14         super().txt_build(builder)
15         builder.exit_fragment()
16
17     def html_build(self, builder):
18         builder.enter_fragment('header')
19         super().html_build(builder)
20         builder.exit_fragment()
21
22     def fb2_build(self, builder):
23         builder.enter_fragment('header')
24         super().fb2_build(builder)
25         builder.exit_fragment()