From e60a1f7e428d5b71a0f3e312549fbb1d4c1cd74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= Date: Wed, 30 Jul 2025 02:31:49 +0300 Subject: [PATCH] Reformat using black --- abogen/book_handler.py | 20 ++++++++++++++------ abogen/conversion.py | 12 +++++++----- abogen/main.py | 3 +++ abogen/utils.py | 14 +++++++++++--- 4 files changed, 35 insertions(+), 14 deletions(-) diff --git a/abogen/book_handler.py b/abogen/book_handler.py index 8f920ae..975bcb8 100644 --- a/abogen/book_handler.py +++ b/abogen/book_handler.py @@ -325,7 +325,7 @@ class HandlerDialog(QDialog): ) # 3. If still no nav_item, check for NCX or fallback to NAV HTML in all ITEM_DOCUMENTs - ncx_constant = getattr(epub, 'ITEM_NCX', None) + ncx_constant = getattr(epub, "ITEM_NCX", None) if not nav_item and ncx_constant is not None: ncx_items = list(self.book.get_items_of_type(ncx_constant)) if ncx_items: @@ -337,13 +337,15 @@ class HandlerDialog(QDialog): for item in self.book.get_items_of_type(ebooklib.ITEM_DOCUMENT): try: html_content = item.get_content().decode("utf-8", errors="ignore") - if '