2341918492a22f0ff4cc2fbf922082e2cef4c156
[librarian.git] / src / librarian / elements / drama / lista_osoba.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 ListaOsoba(WLElement):
8     NUMBERING = "i"
9
10     TXT_TOP_MARGIN = 1
11     TXT_BOTTOM_MARGIN = 1
12     TXT_LEGACY_TOP_MARGIN = 1
13     TXT_LEGACY_BOTTOM_MARGIN = 0
14     TXT_PREFIX = " * "
15
16     EPUB_TAG = HTML_TAG = "li"
17     HTML_CLASS = "wl"
18
19     def html_build(self, builder):
20         builder.enter_fragment('list')
21         super(ListaOsoba, self).html_build(builder)
22         builder.exit_fragment()
23         
24     def epub_build(self, builder):
25         builder.enter_fragment('list')
26         super(ListaOsoba, self).epub_build(builder)
27         builder.exit_fragment()