Explorar o código

增加左右padding

kobe6258 hai 3 días
pai
achega
6d8f27dd50
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()