Improve formatting with NoJS enabled (#509)

Removes line breaks, divider, and link location from all NoJS
links in results when NoJS mode is enabled
このコミットが含まれているのは:
gripped 2021-10-29 16:28:05 +01:00 committed by GitHub
コミット c2ced23073
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加2行の削除

ファイルの表示

@ -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)