From f97398d481eed94c7ac3f98c41a6f6c9e53fb5cb Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 22 Apr 2026 16:25:15 -0700 Subject: [PATCH] remove getTopMargin from EPUBs --- kindlecomicconverter/comic2ebook.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index c95820c..57f30a9 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -136,7 +136,7 @@ def buildHTML(path, imgfile, imgfilepath, imgfile2=None): "content=\"width=" + str(imgsizeframe[0]) + ", height=" + str(imgsizeframe[1]) + "\"/>\n" "\n", "\n", - "
\n", + "
\n", ]) if options.iskindle: # this display none div fixes formatting issues with virtual panel mode, for some reason @@ -1075,11 +1075,6 @@ def getDirectorySize(start_path='.'): return total_size -def getTopMargin(deviceres, size): - y = int((deviceres[1] - size[1]) / 2) / deviceres[1] * 100 - return str(round(y, 1)) - - def getPanelViewResolution(imagesize, deviceres): scale = float(deviceres[0]) / float(imagesize[0]) return int(deviceres[0]), int(scale * imagesize[1])