mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复【知识库】高级分段 自动清洗,把所有换行被去除 (#684)
This commit is contained in:
parent
6c67b65e6a
commit
00f2a8bbd4
|
|
@ -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+"): ''
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue