Counting belongs in document.
[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