format code
This commit is contained in:
parent
2c18dfc637
commit
fa6565a5ad
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user