mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 分段换行被替换
This commit is contained in:
parent
c51c6d7243
commit
ce1c2271eb
|
|
@ -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) + '}'
|
||||
|
|
|
|||
Loading…
Reference in New Issue