Drop lots of legacy code. Support Python 3.7-3.11.
[librarian.git] / src / librarian / elements / styles / tytul_dziela.py
index ef3618c..37abbb9 100644 (file)
@@ -1,13 +1,15 @@
-# -*- coding: utf-8
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
 from ..base import WLElement
 
 
 class TytulDziela(WLElement):
-    HTML_TAG = 'em'
-    HTML_CLASS = 'book-title'
+    EPUB_TAG = HTML_TAG = 'em'
+    EPUB_CLASS = HTML_CLASS = 'book-title'
 
-    def normalize_text(self, text):
-        txt = super(TytulDziela, self).normalize_text(text)
+    def normalize_text(self, text, builder):
+        txt = super(TytulDziela, self).normalize_text(text, builder)
         if self.attrib.get('typ') == '1':
             txt = '„{txt}”'.format(txt=txt)
         return txt