fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add main thema field. Move to calver.
[librarian.git]
/
src
/
librarian
/
elements
/
poetry
/
wers.py
diff --git
a/src/librarian/elements/poetry/wers.py
b/src/librarian/elements/poetry/wers.py
index
5c28058
..
edc4c7c
100644
(file)
--- a/
src/librarian/elements/poetry/wers.py
+++ b/
src/librarian/elements/poetry/wers.py
@@
-1,3
+1,6
@@
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
from ..base import WLElement
from ..base import WLElement
@@
-9,11
+12,16
@@
class Wers(WLElement):
TXT_LEGACY_TOP_MARGIN = 1
TXT_LEGACY_BOTTOM_MARGIN = 0
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
@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''')
+