2 from ..base import WLElement
5 class ListaOsob(WLElement):
10 TXT_LEGACY_TOP_MARGIN = 3
11 TXT_LEGACY_BOTTOM_MARGIN = 1
14 HTML_CLASS = "person-list"
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')
23 def _epub_build_inner(self, builder):
24 ol = etree.Element('ol')
25 builder.create_fragment('list', ol)
26 super(ListaOsob, self)._epub_build_inner(builder)
27 builder.cursor.append(ol)
28 builder.forget_fragment('list')