1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-21 13:41:44 +00:00

Fixed bug caused by formating

2:0 Mr. Ciromattia :-)
This commit is contained in:
Paweł Jastrzębski
2013-03-05 16:52:22 +01:00
parent f805984c1c
commit 825eafad7f

View File

@@ -198,7 +198,7 @@ def buildOPF(profile, dstdir, title, filelist, cover=None, righttoleft=False):
splitCountUsed = 1 splitCountUsed = 1
for entry in reflist: for entry in reflist:
if entry.endswith("-1"): 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'): (options.profile == 'K4' or options.profile == 'KHD'):
f.write("<itemref idref=\"blank-page" + str(splitCountUsed) + "\" properties=\"layout-blank\"/>\n") f.write("<itemref idref=\"blank-page" + str(splitCountUsed) + "\" properties=\"layout-blank\"/>\n")
splitCountUsed += 1 splitCountUsed += 1