fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allow strofa inside table + fix table border in html/epub + fix empty verses in epub
[librarian.git]
/
librarian
/
epub.py
diff --git
a/librarian/epub.py
b/librarian/epub.py
index
3e9056c
..
95e65f1
100644
(file)
--- a/
librarian/epub.py
+++ b/
librarian/epub.py
@@
-201,6
+201,8
@@
class Stanza(object):
if not text:
return
for i, verse_text in enumerate(re.split(r"/\s*\n", text)):
+ if not verse_text.strip():
+ continue
if i:
self.open_normal_verse()
verse = self.get_open_verse()