fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
minor fix
[librarian.git]
/
librarian
/
epub.py
diff --git
a/librarian/epub.py
b/librarian/epub.py
index
201799b
..
cb2166b
100644
(file)
--- a/
librarian/epub.py
+++ b/
librarian/epub.py
@@
-358,7
+358,8
@@
if __name__ == '__main__':
print input
if html.transform(input, is_file=True) == '<empty />':
print 'empty content - skipping'
- transform(open(input, 'r'), open(output, 'w'))
+ else:
+ transform(open(input, 'r'), open(output, 'w'))