X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/55fbc767e5592cad565cff0d16b9638d01b6706f..23d025c8875cca1404f274aca7170c9db5e980e7:/src/librarian/elements/poetry/wers.py diff --git a/src/librarian/elements/poetry/wers.py b/src/librarian/elements/poetry/wers.py index cf2089c..c188845 100644 --- a/src/librarian/elements/poetry/wers.py +++ b/src/librarian/elements/poetry/wers.py @@ -13,6 +13,7 @@ class Wers(WLElement): EPUB_TAG = HTML_TAG = 'div' EPUB_CLASS = 'verse' HTML_CLASS = 'wl verse' + FB2_TAG = 'v' NUMBERING = 'main' @@ -22,8 +23,8 @@ class Wers(WLElement): return self.stanza.meta return super(Wers, self).meta - def _epub_build_inner(self, builder): - super()._epub_build_inner(builder) + def epub_build_inner(self, builder): + super().epub_build_inner(builder) builder.push_text('''\u00a0''') @property @@ -44,9 +45,9 @@ class Wers(WLElement): attr['class'] += ' verse-stretched' return attr - def _html_build_inner(self, builder): + def html_build_inner(self, builder): if self.is_stretched: builder.start_element('span') - super()._html_build_inner(builder) + super().html_build_inner(builder) if self.is_stretched: builder.end_element()