1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-15 18:56:28 +00:00

Fixed No optimization mode (close #88)

This commit is contained in:
Paweł Jastrzębski
2014-04-08 13:10:34 +02:00
parent f32e9560b5
commit 2ee5dc310b

View File

@@ -51,6 +51,7 @@ def buildHTML(path, imgfile, imgfilepath):
imgfilepath = md5Checksum(imgfilepath)
filename = getImageFileName(imgfile)
if filename is not None:
if options.imgproc:
if "Rotated" in theGreatIndex[imgfilepath]:
rotatedPage = True
else:
@@ -67,6 +68,11 @@ def buildHTML(path, imgfile, imgfilepath):
noVerticalPV = True
else:
noVerticalPV = False
else:
rotatedPage = False
noPV = False
noHorizontalPV = False
noVerticalPV = False
htmlpath = ''
postfix = ''
backref = 1
@@ -163,6 +169,7 @@ def buildHTML(path, imgfile, imgfilepath):
def checkMargins(path):
if options.imgproc:
for flag in theGreatIndex[path]:
if "Margins-" in flag:
flag = flag.split('-')