Browse Source

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 months ago
parent
commit
c28bc41a96
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      rag/app/naive.py

+ 2
- 0
rag/app/naive.py View File

@@ -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>"

Loading…
Cancel
Save