wip change fb2 api
[librarian.git] / src / librarian / elements / separators / sekcja_asterysk.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 SekcjaAsterysk(WLElement):
8     TXT_TOP_MARGIN = 2
9     TXT_BOTTOM_MARGIN = 4
10
11     EPUB_TAG = HTML_TAG = "p"
12     HTML_CLASS = HTML_CLASS = "spacer-asterisk"
13
14     def txt_build_inner(self, builder):
15         builder.push_text('*')
16
17     def html_build_inner(self, builder):
18         builder.push_text("*")
19
20     epub_build_inner = html_build_inner
21
22     def fb2_build(self, builder):
23         builder.simple_element('empty-line')
24         builder.simple_element('p', '*')
25         builder.simple_element('empty-line')
26