assigning ids
[librarian.git] / src / librarian / elements / drama / lista_osob.py
index 5beca64..8895aa8 100644 (file)
@@ -4,6 +4,7 @@ from ..base import WLElement
 
 class ListaOsob(WLElement):
     CAN_HAVE_TEXT = False
+    SHOULD_HAVE_ID = True
 
     TXT_TOP_MARGIN = 3
     TXT_BOTTOM_MARGIN = 3
@@ -19,3 +20,10 @@ class ListaOsob(WLElement):
         super(ListaOsob, self)._html_build_inner(builder)
         builder.cursor.append(ol)
         builder.forget_fragment('list')
+
+    def _epub_build_inner(self, builder):
+        ol = etree.Element('ol')
+        builder.create_fragment('list', ol)
+        super(ListaOsob, self)._epub_build_inner(builder)
+        builder.cursor.append(ol)
+        builder.forget_fragment('list')