Remove styling from NoJS liks (#511)

Fixes #510
main
gripped 2021-11-01 22:03:47 +00:00 committed by GitHub
parent 7fe066b4ea
commit d1c9b7f803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -178,8 +178,7 @@ def append_nojs(result: BeautifulSoup) -> None:
""" """
nojs_link = BeautifulSoup(features='html.parser').new_tag('a') nojs_link = BeautifulSoup(features='html.parser').new_tag('a')
nojs_link['href'] = '/window?location=' + result['href'] nojs_link['href'] = '/window?location=' + result['href']
nojs_link['style'] = 'display:block;width:100%;' nojs_link.string = ' NoJS Link'
nojs_link.string = 'NoJS Link'
result.append(nojs_link) result.append(nojs_link)