fix: 分段换行被替换

This commit is contained in:
shaohuzhang1 2023-12-21 17:46:43 +08:00
parent c51c6d7243
commit ce1c2271eb

View File

@ -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) + '}'