fixes for edge cases
[librarian.git] / src / librarian / elements / separators / sekcja_asterysk.py
1 from ..base import WLElement
2
3
4 class SekcjaAsterysk(WLElement):
5     TXT_TOP_MARGIN = 2
6     TXT_BOTTOM_MARGIN = 4
7     TXT_LEGACY_TOP_MARGIN = 2
8     TXT_LEGACY_BOTTOM_MARGIN = 2
9
10     EPUB_TAG = HTML_TAG = "p"
11     HTML_CLASS = HTML_CLASS = "spacer-asterisk"
12
13     def _txt_build_inner(self, builder):
14         builder.push_text('*')
15
16     def _html_build_inner(self, builder):
17         builder.push_text("*")
18
19     _epub_build_inner = _html_build_inner
20