feat(pre_process_file):解决hxops上传excel行截断的问题,由markdown换为命中更好的key=value的方式;dify同步custom;行间\n\n,数据行单独成块;
This commit is contained in:
1 parent
a18a07ef1a
commit
67d08924a4
25 files changed
+655
-25
No files matched your search
@@ -27,8 +27,11 @@ def test_build_clean_result_generates_markdown_for_xlsx(tmp_path):
|
||||
assert result['cleaned_preview_path'] == str(cleaned_path)
|
||||
|
||||
content = cleaned_path.read_text(encoding='utf-8')
|
||||
assert content.strip()
|
||||
assert '供应链' in content
|
||||
assert '能耗' in content
|
||||
# Narrow Excel tables should expose Dify-friendly row boundaries.
|
||||
assert '\n\n|' in content or '| 供应链 | 能耗 |' in content
|
||||
|
||||
|
||||
def test_normalized_source_filename_infers_xlsx_extension(tmp_path):
|
||||
|
||||
Reference in new issue
Block a user