Improve formatting with NoJS enabled (#509)

Removes line breaks, divider, and link location from all NoJS
links in results when NoJS mode is enabled
main
gripped 2021-10-29 16:28:05 +01:00 committed by GitHub
parent 0a78c524fa
commit c2ced23073
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['href'] = '/window?location=' + result['href']
nojs_link['style'] = 'display:block;width:100%;'
nojs_link.string = 'NoJS Link: ' + nojs_link['href']
result.append(BeautifulSoup('<br><hr><br>', 'html.parser'))
nojs_link.string = 'NoJS Link'
result.append(nojs_link)