fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
slowniczek
[librarian.git]
/
librarian
/
epub.py
diff --git
a/librarian/epub.py
b/librarian/epub.py
index
10922d4
..
0c7a16c
100644
(file)
--- a/
librarian/epub.py
+++ b/
librarian/epub.py
@@
-16,7
+16,7
@@
import zipfile
from tempfile import mkdtemp, NamedTemporaryFile
from shutil import rmtree
from tempfile import mkdtemp, NamedTemporaryFile
from shutil import rmtree
-from librarian import RDFNS, WLNS, NCXNS, OPFNS, XHTMLNS,
Output
File
+from librarian import RDFNS, WLNS, NCXNS, OPFNS, XHTMLNS,
IO
File
from librarian.cover import WLCover
from librarian import functions, get_resource
from librarian.cover import WLCover
from librarian import functions, get_resource
@@
-560,4
+560,4
@@
def transform(wldoc, verbose=False,
zip.writestr('OPS/toc.ncx', etree.tostring(toc_file, pretty_print=True))
zip.close()
zip.writestr('OPS/toc.ncx', etree.tostring(toc_file, pretty_print=True))
zip.close()
- return
Output
File.from_filename(output_file.name)
+ return
IO
File.from_filename(output_file.name)