Browse Source

Merge branch 'feature/eta_2.5.4_report_free_layout' into debug

kobe6258 2 weeks ago
parent
commit
12afaf06f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/smart_report.go

+ 1 - 1
services/smart_report.go

@@ -186,7 +186,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+left+right, reportUrl, width, filePath, top, bottom, left, right)
 	utils.FileLog.Info("pdf pyCode: \n" + pyCode)
 	cmd := exec.Command("python3", "-c", pyCode)
 	output, e := cmd.CombinedOutput()