diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index fac39f2..9dd47d3 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -198,7 +198,7 @@ def buildOPF(profile, dstdir, title, filelist, cover=None, righttoleft=False): splitCountUsed = 1 for entry in reflist: if entry.endswith("-1"): - if (righttoleft and facing == 'left') or (not righttoleft and facing == 'right') and \ + if ((righttoleft and facing == 'left') or (not righttoleft and facing == 'right')) and \ (options.profile == 'K4' or options.profile == 'KHD'): f.write("\n") splitCountUsed += 1