From 9543b573e36b90f94888b595c97c1dccbb4d007a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Fri, 6 Nov 2015 19:44:39 +0100 Subject: [PATCH] Miscellaneous fixes --- kcc/comic2ebook.py | 8 +++----- kcc/shared.py | 14 +++++++------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 7ebde84..48c0fa9 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -107,7 +107,7 @@ def buildHTML(path, imgfile, imgfilepath): os.makedirs(htmlpath) htmlfile = os.path.join(htmlpath, filename[0] + '.xhtml') f = open(htmlfile, "w", encoding='UTF-8') - f.writelines(["", + f.writelines(["\n", "\n", "\n", "\n", @@ -211,8 +211,7 @@ def buildNCX(dstdir, title, chapters, chapterNames): "\n", "\n", "", escape(title), "\n", - "" - ]) + "\n"]) for chapter in chapters: folder = chapter[0].replace(os.path.join(dstdir, 'OEBPS'), '').lstrip('/').lstrip('\\\\') filename = getImageFileName(os.path.join(folder, chapter[1])) @@ -253,8 +252,7 @@ def buildNAV(dstdir, title, chapters, chapterNames): f.writelines(["\n", "\n", "