Fix style

This commit is contained in:
Z 2022-04-27 15:32:53 +08:00
parent 9a84532686
commit 1911dde16e

View File

@ -466,7 +466,8 @@ class Filter:
if href.startswith(MAPS_URL):
# Maps links don't work if a site filter is applied
link['href'] = MAPS_URL + "?q=" + clean_query(q)
elif href.startswith('/?') or href.startswith('/search?') or href.startswith('/imgres?'):
elif href.startswith('/?') or href.startswith('/search?') or \
href.startswith('/imgres?'):
# make sure that tags can be clicked as relative URLs
link['href'] = href[1:]
elif href.startswith('/intl/'):