diff --git a/changedetectionio/notification.py b/changedetectionio/notification.py index 4dac610fe29..e7ca67a3ecd 100644 --- a/changedetectionio/notification.py +++ b/changedetectionio/notification.py @@ -77,6 +77,9 @@ def process_notification(n_object, datastore): # Get the notification body from datastore n_body = jinja_render(template_str=n_object.get('notification_body', ''), **notification_parameters) + if n_object.get('notification_format', '').startswith('HTML'): + n_body = n_body.replace("\n", '
') + n_title = jinja_render(template_str=n_object.get('notification_title', ''), **notification_parameters) url = url.strip() diff --git a/changedetectionio/tests/test_notification.py b/changedetectionio/tests/test_notification.py index e43f81f556a..8177071e6b9 100644 --- a/changedetectionio/tests/test_notification.py +++ b/changedetectionio/tests/test_notification.py @@ -442,7 +442,6 @@ def test_global_send_test_notification(client, live_server, measure_memory_usage assert b"Error: You must have atleast one watch configured for 'test notification' to work" in res.data -#2510 def test_html_color_notifications(client, live_server, measure_memory_usage): #live_server_setup(live_server)