Browse Source

增加左右padding

kobe6258 3 ngày trước cách đây
mục cha
commit
6d8f27dd50
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()