fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some prelim work on builder api.
[librarian.git]
/
src
/
librarian
/
elements
/
poetry
/
wers_wciety.py
diff --git
a/src/librarian/elements/poetry/wers_wciety.py
b/src/librarian/elements/poetry/wers_wciety.py
index
4a2744a
..
cb5f25e
100644
(file)
--- a/
src/librarian/elements/poetry/wers_wciety.py
+++ b/
src/librarian/elements/poetry/wers_wciety.py
@@
-12,19
+12,19
@@
class WersWciety(Wers):
v = self.attrib.get('typ')
return int(v) if v else 1
v = self.attrib.get('typ')
return int(v) if v else 1
- def
_
txt_build_inner(self, builder):
+ def txt_build_inner(self, builder):
## Temporary legacy compatibility fix.
typ = min(self.typ, 2)
builder.push_text(' ' * self.typ, prepared=True)
## Temporary legacy compatibility fix.
typ = min(self.typ, 2)
builder.push_text(' ' * self.typ, prepared=True)
- super(
WersWciety, self)._
txt_build_inner(builder)
+ super(
).
txt_build_inner(builder)
def get_html_attr(self, builder):
def get_html_attr(self, builder):
- attr = super(
WersWciety, self
).get_html_attr(builder)
+ attr = super().get_html_attr(builder)
attr['class'] += f" verse-indent-{self.typ}"
return attr
def get_epub_attr(self, builder):
attr['class'] += f" verse-indent-{self.typ}"
return attr
def get_epub_attr(self, builder):
- attr = super(
WersWciety, self
).get_html_attr(builder)
+ attr = super().get_html_attr(builder)
attr['style'] = "margin-left: {}em".format(self.typ)
return attr
attr['style'] = "margin-left: {}em".format(self.typ)
return attr