class WersWciety(Wers):
+ HTML_CLASS = Wers.HTML_CLASS + ' verse-indent'
+
@property
def typ(self):
v = self.attrib.get('typ')
def get_html_attr(self, builder):
attr = super(WersWciety, self).get_html_attr(builder)
- attr['style'] = "padding-left: {}em".format(self.typ)
+ attr['class'] += f" verse-indent-{self.typ}"
return attr
def get_epub_attr(self, builder):