Skip to content

Commit 7a5bfa2

Browse files
authored
fix: 修复导入带有表格样式的md文件分段后表格格式丢失 #615 (#630)
1 parent 3a7c4d3 commit 7a5bfa2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/common/util/split_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ def parse(self, text: str):
335335
:param text: 文本数据
336336
:return: 解析后数据 {content:段落数据,keywords:[‘段落关键词’],parent_chain:['段落父级链路']}
337337
"""
338+
text = text.replace('\r\n', '\n')
338339
text = text.replace('\r', '\n')
339340
text = text.replace("\0", '')
340341
result_tree = self.parse_to_tree(text, 0)

0 commit comments

Comments
 (0)