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",
"