New Element-based builder API (WiP).
[librarian.git] / src / librarian / elements / styles / tytul_dziela.py
1 # -*- coding: utf-8
2 from ..base import WLElement
3
4
5 class TytulDziela(WLElement):
6     def normalize_text(self, text):
7         txt = super(TytulDziela, self).normalize_text(text)
8         if self.attrib.get('typ') == '1':
9             txt = '„{txt}”'.format(txt=txt)
10         return txt