3e9bb6f498fd84db3f8bf0f9ce011ea2204c310d
[librarian.git] / src / librarian / elements / poetry / wers_wciety.py
1 from .wers import Wers
2
3
4 class WersWciety(Wers):
5     @property
6     def typ(self):
7         ## Temporary legacy compatibility fix.
8         return 2 if 'typ' in self.attrib else 1
9
10         v = self.attrib.get('typ')
11         return int(v) if v else 1
12
13     def _txt_build_inner(self, builder):
14         builder.push_text('  ' * self.typ, prepared=True)
15         super(WersWciety, self)._txt_build_inner(builder)
16