From a90adcf15c6ff08c6a1862ab98e5d7bd6252d66c Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 10 Jun 2023 12:24:37 +0000 Subject: [PATCH] chore: change some markdown parameters --- util/general_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/general_utils.py b/util/general_utils.py index c3719da59..8ee25b80e 100644 --- a/util/general_utils.py +++ b/util/general_utils.py @@ -191,7 +191,7 @@ def render_markdown(markdown_text, image_width=800, image_height=600, font_size= if font.getsize(line)[0] > image_width: cp = line single_size = font.getsize("步")[0] - max_words_per_line = (image_width // single_size)*2 + max_words_per_line = (image_width // single_size - 2)*2 # 步长为单个字符的宽度 _t = 0 for ii in range(len(line)):