Support for block annotations. Option to use endnotes in PDF.
[librarian.git] / src / librarian / elements / poetry / wers.py
1 from ..base import WLElement
2
3
4 class Wers(WLElement):
5     STRIP = True
6
7     TXT_TOP_MARGIN = 1
8     TXT_BOTTOM_MARGIN = 1
9     TXT_LEGACY_TOP_MARGIN = 1
10     TXT_LEGACY_BOTTOM_MARGIN = 0
11
12     EPUB_TAG = HTML_TAG = 'div'
13     EPUB_CLASS = HTML_CLASS = 'verse'
14
15     @property
16     def meta(self):
17         if hasattr(self, 'stanza'):
18             return self.stanza.meta
19         return super(Wers, self).meta
20
21     def _epub_build_inner(self, builder):
22         super()._epub_build_inner(builder)
23         builder.push_text('''\u00a0''')
24