Improve formatting with NoJS enabled (#509)
Removes line breaks, divider, and link location from all NoJS links in results when NoJS mode is enabledmain
parent
0a78c524fa
commit
c2ced23073
|
@ -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['style'] = 'display:block;width:100%;'
|
||||||
nojs_link.string = 'NoJS Link: ' + nojs_link['href']
|
nojs_link.string = 'NoJS Link'
|
||||||
result.append(BeautifulSoup('<br><hr><br>', 'html.parser'))
|
|
||||||
result.append(nojs_link)
|
result.append(nojs_link)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue