X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/d04e61819290fc8d6d71b1932c55a774014c1f05..adfc9d2b19ec27d32d5e4dd3ceba16d1fe51fcc9:/src/librarian/elements/poetry/wers.py?ds=inline diff --git a/src/librarian/elements/poetry/wers.py b/src/librarian/elements/poetry/wers.py index 5c28058..55cf537 100644 --- a/src/librarian/elements/poetry/wers.py +++ b/src/librarian/elements/poetry/wers.py @@ -9,11 +9,16 @@ class Wers(WLElement): TXT_LEGACY_TOP_MARGIN = 1 TXT_LEGACY_BOTTOM_MARGIN = 0 - HTML_TAG = 'div' - HTML_CLASS = 'verse' + EPUB_TAG = HTML_TAG = 'div' + EPUB_CLASS = HTML_CLASS = 'verse' @property def meta(self): if hasattr(self, 'stanza'): return self.stanza.meta return super(Wers, self).meta + + def _epub_build_inner(self, builder): + super()._epub_build_inner(builder) + builder.push_text('''\u00a0''') +