fix: correct typo in function name paser_docx_part -> parser_docx_part (#22936)
This commit is contained in:
@@ -305,7 +305,7 @@ def _extract_text_from_doc(file_content: bytes) -> str:
|
||||
raise TextExtractionError(f"Failed to extract text from DOC: {str(e)}") from e
|
||||
|
||||
|
||||
def paser_docx_part(block, doc: Document, content_items, i):
|
||||
def parser_docx_part(block, doc: Document, content_items, i):
|
||||
if isinstance(block, CT_P):
|
||||
content_items.append((i, "paragraph", Paragraph(block, doc)))
|
||||
elif isinstance(block, CT_Tbl):
|
||||
@@ -329,7 +329,7 @@ def _extract_text_from_docx(file_content: bytes) -> str:
|
||||
part = next(it, None)
|
||||
i = 0
|
||||
while part is not None:
|
||||
paser_docx_part(part, doc, content_items, i)
|
||||
parser_docx_part(part, doc, content_items, i)
|
||||
i = i + 1
|
||||
part = next(it, None)
|
||||
|
||||
|
Reference in New Issue
Block a user