浏览代码

Fix docx table issue. (#5117)

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.17.0
Kevin Hu 8 个月前
父节点
当前提交
c28bc41a96
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      rag/app/naive.py

+ 2
- 0
rag/app/naive.py 查看文件

@@ -116,6 +116,8 @@ class Docx(DocxParser):
if c.text == r.cells[j].text:
span += 1
i = j
else:
break
i += 1
html += f"<td>{c.text}</td>" if span == 1 else f"<td colspan='{span}'>{c.text}</td>"
html += "</tr>"

正在加载...
取消
保存