X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..9c9a55d7dda5595a236f11977d7f21f804d37872:/src/librarian/elements/styles/tytul_dziela.py?ds=sidebyside diff --git a/src/librarian/elements/styles/tytul_dziela.py b/src/librarian/elements/styles/tytul_dziela.py index b6c3662..37abbb9 100644 --- a/src/librarian/elements/styles/tytul_dziela.py +++ b/src/librarian/elements/styles/tytul_dziela.py @@ -1,10 +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): - def normalize_text(self, text): - txt = super(TytulDziela, self).normalize_text(text) + EPUB_TAG = HTML_TAG = 'em' + EPUB_CLASS = HTML_CLASS = 'book-title' + + 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