fnp
/
librarian.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5c2805878e74efdfdf0a80d4219d244fec1872e3
[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
HTML_TAG = 'div'
13
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