diff --git a/apps/common/util/split_model.py b/apps/common/util/split_model.py index 6b8fd369536..da7a8976af9 100644 --- a/apps/common/util/split_model.py +++ b/apps/common/util/split_model.py @@ -257,7 +257,7 @@ def post_handler_paragraph(content: str, limit: int, with_filter: bool): replace_map = { re.compile('\n+'): '\n', - re.compile('\\s+'): ' ', + re.compile(' +'): ' ', re.compile('#+'): "", re.compile("\t+"): '' }