Improve formatting with NoJS enabled

This commit is contained in:
gripped 2021-10-29 10:05:23 +01:00
parent 0a78c524fa
commit 5d14b9f35f

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)