mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复【知识库】语雀导出的word,导入知识库是空白的 #1148
This commit is contained in:
parent
b8d1512eca
commit
885ab5410a
|
|
@ -110,11 +110,12 @@ class DocSplitHandle(BaseSplitHandle):
|
|||
def to_md(self, doc, images_list, get_image_id):
|
||||
elements = []
|
||||
for element in doc.element.body:
|
||||
if element.tag.endswith('tbl'):
|
||||
tag = str(element.tag)
|
||||
if tag.endswith('tbl'):
|
||||
# 处理表格
|
||||
table = Table(element, doc)
|
||||
elements.append(table)
|
||||
elif element.tag.endswith('p'):
|
||||
elif tag.endswith('p'):
|
||||
# 处理段落
|
||||
paragraph = Paragraph(element, doc)
|
||||
elements.append(paragraph)
|
||||
|
|
|
|||
Loading…
Reference in New Issue