Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 28, 2024
1 parent c4514eb commit 5cf0869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doctor/lib/text_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def get_word(word_dict: dict, width: float, strip_margin: bool) -> str:
elif conf < 40 and word_dict["left"] > right_margin:
word = "□" * len(word)

return word + " "
return f"{word} "


def cleanup_content(content: str, page_number: int) -> str:
Expand All @@ -306,7 +306,7 @@ def cleanup_content(content: str, page_number: int) -> str:
content = re.sub(pattern, "", content, flags=re.MULTILINE)

content = remove_excess_whitespace(content)
return content + "\n"
return f"{content}\n"


def remove_excess_whitespace(document: str) -> str:
Expand Down

0 comments on commit 5cf0869

Please sign in to comment.