From ce1c2271eb7421084d1a9060d1e60dcc5f73a74f Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 21 Dec 2023 17:46:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=86=E6=AE=B5=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=E8=A2=AB=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/util/split_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/util/split_model.py b/apps/common/util/split_model.py index 216da0c8d..91007ed9c 100644 --- a/apps/common/util/split_model.py +++ b/apps/common/util/split_model.py @@ -245,7 +245,7 @@ def post_handler_paragraph(content: str, limit: int, with_filter: bool): if len(temp_char + split) > limit: result.append(temp_char) temp_char = '' - temp_char = temp_char + split + temp_char = temp_char + split + '\n' if len(temp_char) > 0: result.append(temp_char) pattern = "[\\S\\s]{1," + str(limit) + '}'