From c2ced230737572a286dcdc8cfd56ab83e60c990a Mon Sep 17 00:00:00 2001 From: gripped Date: Fri, 29 Oct 2021 16:28:05 +0100 Subject: [PATCH] Improve formatting with NoJS enabled (#509) Removes line breaks, divider, and link location from all NoJS links in results when NoJS mode is enabled --- app/utils/results.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/utils/results.py b/app/utils/results.py index 7b603fb..e04b629 100644 --- a/app/utils/results.py +++ b/app/utils/results.py @@ -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('


', 'html.parser')) + nojs_link.string = 'NoJS Link' result.append(nojs_link)