From e1874b83cbc052de4c83aaf31c4091a31280b2fb Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 23 Nov 2018 16:04:42 +0100 Subject: [PATCH] CRLF in epub --- librarian/epub.py | 1 + 1 file changed, 1 insertion(+) diff --git a/librarian/epub.py b/librarian/epub.py index c802ec7..7fd6daf 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -462,6 +462,7 @@ def transform(wldoc, verbose=False, style=None, html_toc=False, doctype='' ) + html_string = re.sub(ur'([^\r])\n', ur'\1\r\n', html_string) zip.writestr('OPS/part%d.html' % chunk_counter, html_string) add_to_manifest(manifest, chunk_counter) add_to_spine(spine, chunk_counter) -- 2.20.1