2 from ..base import WLElement
5 class ListaOsob(WLElement):
11 TXT_LEGACY_TOP_MARGIN = 3
12 TXT_LEGACY_BOTTOM_MARGIN = 1
15 HTML_CLASS = "person-list"
17 def _html_build_inner(self, builder):
18 ol = etree.Element('ol')
19 builder.create_fragment('list', ol)
20 super(ListaOsob, self)._html_build_inner(builder)
21 builder.cursor.append(ol)
22 builder.forget_fragment('list')
24 def _epub_build_inner(self, builder):
25 ol = etree.Element('ol')
26 builder.create_fragment('list', ol)
27 super(ListaOsob, self)._epub_build_inner(builder)
28 builder.cursor.append(ol)
29 builder.forget_fragment('list')