fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix
[librarian.git]
/
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
906d98c
..
37abbb9
100644
(file)
--- a/
src/librarian/elements/styles/tytul_dziela.py
+++ b/
src/librarian/elements/styles/tytul_dziela.py
@@
-1,4
+1,6
@@
-# -*- 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
from ..base import WLElement
@@
-6,8
+8,8
@@
class TytulDziela(WLElement):
EPUB_TAG = HTML_TAG = 'em'
EPUB_CLASS = 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
if self.attrib.get('typ') == '1':
txt = '„{txt}”'.format(txt=txt)
return txt