5beca64befc7ca6a63c1da1c2e74392b363c4bb6
[librarian.git] / src / librarian / elements / drama / lista_osob.py
1 from lxml import etree
2 from ..base import WLElement
3
4
5 class ListaOsob(WLElement):
6     CAN_HAVE_TEXT = False
7
8     TXT_TOP_MARGIN = 3
9     TXT_BOTTOM_MARGIN = 3
10     TXT_LEGACY_TOP_MARGIN = 3
11     TXT_LEGACY_BOTTOM_MARGIN = 1
12
13     HTML_TAG = "div"
14     HTML_CLASS = "person-list"
15
16     def _html_build_inner(self, builder):
17         ol = etree.Element('ol')
18         builder.create_fragment('list', ol)
19         super(ListaOsob, self)._html_build_inner(builder)
20         builder.cursor.append(ol)
21         builder.forget_fragment('list')