Skip to content

Commit 8d503c8

Browse files
committed
fix: update post_cell function to handle different newline characters in cell values
--bug=1054683 --user=刘瑞斌 【github#2831】知识库上传excel、应用编排文档内容提取节点中上传excel,单元格中有换行,导入后没有在一个单元格里显示 https://www.tapd.cn/57709429/s/1690232
1 parent df7f922 commit 8d503c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/handle/impl/xls_split_handle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
def post_cell(cell_value):
17-
return cell_value.replace('\n', '<br>').replace('|', '&#124;')
17+
return cell_value.replace('\r\n', '<br>').replace('\n', '<br>').replace('|', '&#124;')
1818

1919

2020
def row_to_md(row):

0 commit comments

Comments
 (0)