From 4a226f77c792bf3a8c34f3ca452cee6049283540 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 3 Nov 2024 20:57:30 +0530 Subject: [PATCH] pep8 --- src/calibre/ebooks/pdf/reflow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/pdf/reflow.py b/src/calibre/ebooks/pdf/reflow.py index f0ba09df06..6b10b67f80 100644 --- a/src/calibre/ebooks/pdf/reflow.py +++ b/src/calibre/ebooks/pdf/reflow.py @@ -916,7 +916,7 @@ class Page: and lmargin != ymargin \ and lmargin >= rmargin - rmargin*CENTER_FACTOR \ and lmargin <= rmargin + rmargin*CENTER_FACTOR \ - and not '"float:right"' in t.raw: + and '"float:right"' not in t.raw: #and t.left + t.width + t.left >= self.width + l_offset - t.average_character_width \ #and t.left + t.width + t.left <= self.width + l_offset + t.average_character_width: t.align = 'C' @@ -989,7 +989,7 @@ class Page: or (second_text.left >= first_text.last_left \ and second_text.bottom <= first_text.bottom)) \ and 'href=' not in second_text.raw \ - and not '"float:right"' in first_text.raw \ + and '"float:right"' not in first_text.raw \ and first_text.bottom + stats.line_space + (stats.line_space*LINE_FACTOR) \ >= second_text.bottom \ and first_text.final_width > self.width*self.opts.unwrap_factor \