fix(excel_parser): keep zero-valued cells when building Excel text chunks (#16287)

This commit is contained in:
Yash Raj Pandey
2026-06-25 21:30:09 -04:00
committed by GitHub
parent 58da1d6bc3
commit dd2c88b768
2 changed files with 32 additions and 1 deletions

View File

@@ -283,7 +283,7 @@ class RAGFlowExcelParser:
for r in list(rows[1:]):
fields = []
for i, c in enumerate(r):
if not c.value:
if c.value is None or str(c.value).strip() == "":
continue
t = str(ti[i].value) if i < len(ti) else ""
t += ("" if t else "") + str(c.value)