UI - Live preview - misc improvements

This commit is contained in:
dgtlmoon
2024-09-28 15:37:10 +02:00
parent 1b625dc18a
commit 4631acb380
5 changed files with 13 additions and 9 deletions
@@ -207,7 +207,7 @@ class perform_site_check(difference_detection_processor):
stripped_text_from_html = '\n'.join(line.strip() for line in stripped_text_from_html.replace("\n\n", "\n").splitlines())
if watch.get('remove_duplicate_lines'):
stripped_text_from_html = '\n'.join(dict.fromkeys(line.strip() for line in stripped_text_from_html.replace("\n\n", "\n").splitlines()))
stripped_text_from_html = '\n'.join(dict.fromkeys(line for line in stripped_text_from_html.replace("\n\n", "\n").splitlines()))
if watch.get('sort_text_alphabetically'):
# Note: Because a <p>something</p> will add an extra line feed to signify the paragraph gap