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):
16 HTML_CLASS = "person-list"
18 def _html_build_inner(self, builder):
19 ol = etree.Element('ol')
20 builder.create_fragment('list', ol)
21 super(ListaOsob, self)._html_build_inner(builder)
22 builder.cursor.append(ol)
23 builder.forget_fragment('list')
25 def _epub_build_inner(self, builder):
26 ol = etree.Element('ol')
27 builder.create_fragment('list', ol)
28 super(ListaOsob, self)._epub_build_inner(builder)
29 builder.cursor.append(ol)
30 builder.forget_fragment('list')