X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..e18e5408fa57b7c680e7b834a964501898623117:/src/librarian/elements/poetry/wers.py?ds=sidebyside diff --git a/src/librarian/elements/poetry/wers.py b/src/librarian/elements/poetry/wers.py index e164b1d..5c28058 100644 --- a/src/librarian/elements/poetry/wers.py +++ b/src/librarian/elements/poetry/wers.py @@ -10,4 +10,10 @@ class Wers(WLElement): TXT_LEGACY_BOTTOM_MARGIN = 0 HTML_TAG = 'div' - HTML_ATTRIB = {"class": "verse"} + HTML_CLASS = 'verse' + + @property + def meta(self): + if hasattr(self, 'stanza'): + return self.stanza.meta + return super(Wers, self).meta