[epub, mobi] encode in utf-8 instead of entities. Result: smaller files :)
[librarian.git] / librarian / text.py
index 37bd7ed..0f3c0bb 100644 (file)
@@ -95,5 +95,5 @@ def transform(wldoc, flags=None, **options):
         }).encode('utf-8')
     else:
         result = unicode(result).encode('utf-8')
         }).encode('utf-8')
     else:
         result = unicode(result).encode('utf-8')
-    return OutputFile.from_string("\r\n".join(result.splitlines()))
+    return OutputFile.from_string("\r\n".join(result.splitlines()) + "\r\n")