diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 6be5da3..f4fa71c 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -70,26 +70,49 @@ def buildHTML(path, imgfile): imgfile, "\" class=\"singlePage\"/>\n" ]) if options.panelview: - if options.righttoleft: - f.writelines(["
\n", - "\n", - "\n", - "\n" - ]) + if options.panelviewhorizontal: + if options.righttoleft: + f.writelines(["\n", + "\n", + "\n", + "\n" + ]) + else: + f.writelines(["\n", + "\n", + "\n", + "\n" + ]) else: - f.writelines(["\n", - "\n", - "\n", - "\n" - ]) + if options.righttoleft: + f.writelines(["\n", + "\n", + "\n", + "\n" + ]) + else: + f.writelines(["\n", + "\n", + "\n", + "\n" + ]) + f.writelines(["