From 78df903de723f63f79137ffca0c57cc94e67fc55 Mon Sep 17 00:00:00 2001
From: Timmy Welch
Date: Fri, 27 Sep 2024 15:08:00 -0700
Subject: [PATCH] pre-commit
---
comictalker/talker_utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/comictalker/talker_utils.py b/comictalker/talker_utils.py
index 233d948..03a4c06 100644
--- a/comictalker/talker_utils.py
+++ b/comictalker/talker_utils.py
@@ -49,7 +49,7 @@ def cleanup_html(string: str | None, remove_html_tables: bool = False) -> str:
string = re.sub(r"
|", "\n", string, flags=re.IGNORECASE)
string = re.sub(r"", "* ", string, flags=re.IGNORECASE)
string = re.sub(r"
", "\n\n", string, flags=re.IGNORECASE)
- string = re.sub(r"", lambda m: '#'*int(m.group(1))+' ', string, flags=re.IGNORECASE)
+ string = re.sub(r"", lambda m: "#" * int(m.group(1)) + " ", string, flags=re.IGNORECASE)
string = re.sub(r"", "\n", string, flags=re.IGNORECASE)
# remove the tables