fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
43f9887
)
CRLF in epub
author
Jan Szejko
<janek37@gmail.com>
Fri, 23 Nov 2018 15:04:42 +0000
(16:04 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Wed, 19 Dec 2018 13:43:16 +0000
(14:43 +0100)
librarian/epub.py
patch
|
blob
|
history
diff --git
a/librarian/epub.py
b/librarian/epub.py
index
c802ec7
..
7fd6daf
100644
(file)
--- a/
librarian/epub.py
+++ b/
librarian/epub.py
@@
-462,6
+462,7
@@
def transform(wldoc, verbose=False, style=None, html_toc=False,
doctype='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"' +
' "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'
)
+ 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)