Просмотр исходного кода

fix bug of ragflowdocxpparser (#1642)

### What problem does this PR solve?

#1627

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.9.0
Kevin Hu 1 год назад
Родитель
Сommit
95821f6fb6
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      deepdoc/parser/docx_parser.py

+ 1
- 1
deepdoc/parser/docx_parser.py Просмотреть файл

@@ -127,7 +127,7 @@ class RAGFlowDocxParser:
runs_within_single_paragraph.append(run.text) # append run.text first

# wrap page break checker into a static method
if RAGFlowDocxParser.has_page_break(run._element.xml):
if 'lastRenderedPageBreak' in run._element.xml:
pn += 1

secs.append(("".join(runs_within_single_paragraph), p.style.name)) # then concat run.text as part of the paragraph

Загрузка…
Отмена
Сохранить