Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] committed Sep 13, 2024
1 parent 8be5a48 commit be173ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paperqa/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def parse_pdf_to_pages(path: Path) -> ParsedText:
)
return ParsedText(content=pages, metadata=metadata)


def parse_docx_to_text(path: Path) -> ParsedText:
doc = docx.Document(path)
text = "\n".join([para.text for para in doc.paragraphs])
Expand Down

0 comments on commit be173ca

Please sign in to comment.