소스 검색

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
No account linked to committer's email address
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>"

Loading…
취소
저장