405f2d6472a135f194e89ac685129525f594c340
[librarian.git] / src / librarian / elements / headers / podtytul_czesc.py
1 from ..base import WLElement
2
3
4 class PodtytulCzesc(WLElement):
5     SHOULD_HAVE_ID = True
6
7     TXT_TOP_MARGIN = 2
8     TXT_BOTTOM_MARGIN = 2
9
10     HTML_TAG = "div"
11     HTML_CLASS = "subtitle2"
12
13     EPUB_TAG = "h2"
14     EPUB_CLASS = "h2"
15
16     def _epub_build_inner(self, builder):
17         builder.start_element('small', {})
18         super()._epub_build_inner(builder)
19         builder.end_element()