From 147197dec74862d68752f7072b0d692c98d35195 Mon Sep 17 00:00:00 2001 From: Kibzik Date: Mon, 9 Jan 2023 20:54:03 +0300 Subject: [PATCH] get rid of BeautifulSoup process --- src/epub_converter/html_epub_processor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/epub_converter/html_epub_processor.py b/src/epub_converter/html_epub_processor.py index 711406d..2cbdef4 100644 --- a/src/epub_converter/html_epub_processor.py +++ b/src/epub_converter/html_epub_processor.py @@ -26,9 +26,8 @@ class HtmlEpubProcessor: cleaned title """ - title = BeautifulSoup(title_of_chapter, features="lxml").string # clean extra whitespace characters ([\r\n\t\f\v ]) - title = re.sub(r"[\s\xa0]", " ", title).strip() + title = re.sub(r"[\s\xa0]", " ", title_of_chapter).strip() return title @staticmethod