diff --git a/changedetectionio/diff.py b/changedetectionio/diff.py index 80c2f92eb..cd83e8b43 100644 --- a/changedetectionio/diff.py +++ b/changedetectionio/diff.py @@ -48,8 +48,8 @@ def customSequenceMatcher( yield [f"(removed) {line}" for line in same_slicer(before, alo, ahi)] if include_change_type_prefix else same_slicer(before, alo, ahi) elif include_replaced and tag == 'replace': if html_colour: - yield [f'{line}' for line in same_slicer(before, alo, ahi)] + \ - [f'{line}' for line in same_slicer(after, blo, bhi)] + yield [f'{line}' for line in same_slicer(before, alo, ahi)] + \ + [f'{line}' for line in same_slicer(after, blo, bhi)] else: yield [f"(changed) {line}" for line in same_slicer(before, alo, ahi)] + \ [f"(into) {line}" for line in same_slicer(after, blo, bhi)] if include_change_type_prefix else same_slicer(before, alo, ahi) + same_slicer(after, blo, bhi) diff --git a/changedetectionio/tests/test_notification.py b/changedetectionio/tests/test_notification.py index 0c20a9f10..5f709f958 100644 --- a/changedetectionio/tests/test_notification.py +++ b/changedetectionio/tests/test_notification.py @@ -492,7 +492,8 @@ def _test_color_notifications(client, notification_body_token): with open("test-datastore/notification.txt", 'r') as f: x = f.read() - assert f'Which is across multiple lines' in x + assert f'Which is across multiple lines' in x + assert f'
' in x client.get(