1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
5 from ..base import WLElement
8 class ListaOsob(WLElement):
14 TXT_LEGACY_TOP_MARGIN = 3
15 TXT_LEGACY_BOTTOM_MARGIN = 1
18 HTML_CLASS = "person-list"
20 def _html_build_inner(self, builder):
21 ol = etree.Element('ol')
22 builder.create_fragment('list', ol)
23 super(ListaOsob, self)._html_build_inner(builder)
24 builder.cursor.append(ol)
25 builder.forget_fragment('list')
27 def _epub_build_inner(self, builder):
28 ol = etree.Element('ol')
29 builder.create_fragment('list', ol)
30 super(ListaOsob, self)._epub_build_inner(builder)
31 builder.cursor.append(ol)
32 builder.forget_fragment('list')