X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3a0c83394d5783715fab2be29fa1a9cfc3574e28..b1376392167c09775bf57b41cb9ea3016f06cfb8:/src/librarian/elements/poetry/wers_wciety.py?ds=sidebyside diff --git a/src/librarian/elements/poetry/wers_wciety.py b/src/librarian/elements/poetry/wers_wciety.py index 8fbd175..4a2744a 100644 --- a/src/librarian/elements/poetry/wers_wciety.py +++ b/src/librarian/elements/poetry/wers_wciety.py @@ -5,6 +5,8 @@ from .wers import Wers class WersWciety(Wers): + HTML_CLASS = Wers.HTML_CLASS + ' verse-indent' + @property def typ(self): v = self.attrib.get('typ') @@ -19,7 +21,7 @@ class WersWciety(Wers): 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):