format code

This commit is contained in:
Joao Ramos 2022-06-15 18:48:34 +02:00
parent 2c18dfc637
commit fa6565a5ad

View File

@ -480,8 +480,11 @@ class Filter:
else: else:
link['href'] = href link['href'] = href
if self.config.new_tab and (link['href'].startswith('http') or link['href'].startswith('imgres?')): if self.config.new_tab and (
link['target'] = '_blank' link["href"].startswith("http")
or link["href"].startswith("imgres?")
):
link["target"] = "_blank"
# Replace link location if "alts" config is enabled # Replace link location if "alts" config is enabled
if self.config.alts: if self.config.alts: