Sfoglia il codice sorgente

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 anno fa
parent
commit
95821f6fb6
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      deepdoc/parser/docx_parser.py

+ 1
- 1
deepdoc/parser/docx_parser.py Vedi File

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

Loading…
Annulla
Salva