mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-22 14:10:01 +08:00
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)
This commit is contained in:
parent
bf2ea04d02
commit
95821f6fb6
@ -127,7 +127,7 @@ class RAGFlowDocxParser:
|
|||||||
runs_within_single_paragraph.append(run.text) # append run.text first
|
runs_within_single_paragraph.append(run.text) # append run.text first
|
||||||
|
|
||||||
# wrap page break checker into a static method
|
# wrap page break checker into a static method
|
||||||
if RAGFlowDocxParser.has_page_break(run._element.xml):
|
if 'lastRenderedPageBreak' in run._element.xml:
|
||||||
pn += 1
|
pn += 1
|
||||||
|
|
||||||
secs.append(("".join(runs_within_single_paragraph), p.style.name)) # then concat run.text as part of the paragraph
|
secs.append(("".join(runs_within_single_paragraph), p.style.name)) # then concat run.text as part of the paragraph
|
||||||
|
Loading…
x
Reference in New Issue
Block a user