浏览代码

增加左右padding

kobe6258 3 天之前
父节点
当前提交
6d8f27dd50
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/smart_report.go

+ 1 - 1
services/smart_report.go

@@ -187,7 +187,7 @@ finally:
     loop.close()
 `
 
-	pyCode = fmt.Sprintf(pyCode, utils.ChromePath, width, reportUrl, width, filePath, top, bottom, left, right)
+	pyCode = fmt.Sprintf(pyCode, utils.ChromePath, width, reportUrl, width+left+right, filePath, top, bottom, left, right)
 	utils.FileLog.Info("pdf pyCode: \n" + pyCode)
 	cmd := exec.Command(utils.CommandPython, "-c", pyCode)
 	output, e := cmd.CombinedOutput()