fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix Ó in <naglowekosoba> (hack)
[librarian.git]
/
librarian
/
epub.py
diff --git
a/librarian/epub.py
b/librarian/epub.py
index
3e9056c
..
397dc51
100644
(file)
--- a/
librarian/epub.py
+++ b/
librarian/epub.py
@@
-19,7
+19,7
@@
from tempfile import mkdtemp, NamedTemporaryFile
from shutil import rmtree
from librarian import RDFNS, WLNS, NCXNS, OPFNS, XHTMLNS, DCNS, OutputFile
from shutil import rmtree
from librarian import RDFNS, WLNS, NCXNS, OPFNS, XHTMLNS, DCNS, OutputFile
-from librarian.cover import
DefaultEbookC
over
+from librarian.cover import
make_c
over
from librarian import functions, get_resource
from librarian import functions, get_resource
@@
-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 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()
if i:
self.open_normal_verse()
verse = self.get_open_verse()
@@
-563,7
+565,7
@@
def transform(wldoc, verbose=False, style=None, html_toc=False,
if cover:
if cover is True:
if cover:
if cover is True:
- cover =
DefaultEbookC
over
+ cover =
make_c
over
cover_file = StringIO()
bound_cover = cover(document.book_info)
cover_file = StringIO()
bound_cover = cover(document.book_info)