From fa6565a5ad5a5fad552a41ab345c8a128b389e70 Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Wed, 15 Jun 2022 18:48:34 +0200 Subject: [PATCH] format code --- app/filter.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/filter.py b/app/filter.py index 5ed45e0..3162c27 100644 --- a/app/filter.py +++ b/app/filter.py @@ -480,8 +480,11 @@ class Filter: else: link['href'] = href - if self.config.new_tab and (link['href'].startswith('http') or link['href'].startswith('imgres?')): - link['target'] = '_blank' + if self.config.new_tab and ( + link["href"].startswith("http") + or link["href"].startswith("imgres?") + ): + link["target"] = "_blank" # Replace link location if "alts" config is enabled if self.config.alts: