X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..60793577fb55fc36bdb1a7e145dff7c8340129a5:/src/librarian/elements/poetry/wers.py 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