e4243df0a4b07b8c7a12f1a698727a360e892385
[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     TXT_TOP_MARGIN = 1
9     TXT_BOTTOM_MARGIN = 1
10     TXT_LEGACY_TOP_MARGIN = 1
11     TXT_LEGACY_BOTTOM_MARGIN = 0
12     TXT_PREFIX = " * "
13
14     EPUB_TAG = HTML_TAG = "li"
15
16     def html_build(self, builder):
17         builder.enter_fragment('list')
18         super(ListaOsoba, self).html_build(builder)
19         builder.exit_fragment()
20         
21     def epub_build(self, builder):
22         builder.enter_fragment('list')
23         super(ListaOsoba, self).epub_build(builder)
24         builder.exit_fragment()