From 5cf0869bef327d5128ba03171f663ae87ce53b56 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 21:42:16 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doctor/lib/text_extraction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doctor/lib/text_extraction.py b/doctor/lib/text_extraction.py index d00a3f1..c63f7c5 100644 --- a/doctor/lib/text_extraction.py +++ b/doctor/lib/text_extraction.py @@ -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: @@ -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: