X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/d04e61819290fc8d6d71b1932c55a774014c1f05..2f3d912ff881e991e4689f1036e23cb6664eb43e:/src/librarian/elements/styles/tytul_dziela.py diff --git a/src/librarian/elements/styles/tytul_dziela.py b/src/librarian/elements/styles/tytul_dziela.py index ef3618c..77852d5 100644 --- a/src/librarian/elements/styles/tytul_dziela.py +++ b/src/librarian/elements/styles/tytul_dziela.py @@ -3,11 +3,11 @@ 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