diff --git a/src/calibre/ebooks/chm/input.py b/src/calibre/ebooks/chm/input.py index 3f0aa21f08..a3a49296d2 100644 --- a/src/calibre/ebooks/chm/input.py +++ b/src/calibre/ebooks/chm/input.py @@ -141,7 +141,8 @@ class CHMInput(InputFormatPlugin): log.debug('Found %d section nodes' % len(chapters)) htmlpath = os.path.splitext(hhcpath)[0] + ".html" f = open(htmlpath, 'wb') - f.write("
\r\n") + f.write('\n') if chapters: path0 = chapters[0][1] @@ -152,10 +153,12 @@ class CHMInput(InputFormatPlugin): rsrcname = os.path.basename(chapter[1]) rsrcpath = os.path.join(subpath, rsrcname) # title should already be url encoded - url = "