diff --git a/changedetectionio/notification/handler.py b/changedetectionio/notification/handler.py index f153cbc8..f5319a2e 100644 --- a/changedetectionio/notification/handler.py +++ b/changedetectionio/notification/handler.py @@ -123,7 +123,7 @@ def process_notification(n_object: NotificationContextData, datastore): if n_object.get('markup_text_to_html'): n_body = markup_text_links_to_html(body=n_body) - if n_format == NotifyFormat.HTML: + if n_format == str(NotifyFormat.HTML): n_body = n_body.replace("\n", '
') n_title = jinja_render(template_str=n_object.get('notification_title', ''), **notification_parameters) diff --git a/changedetectionio/notification_service.py b/changedetectionio/notification_service.py index 8e261b09..2f5e3fd4 100644 --- a/changedetectionio/notification_service.py +++ b/changedetectionio/notification_service.py @@ -124,10 +124,10 @@ class NotificationService: n_object.update({ 'current_snapshot': snapshot_contents, 'diff': diff.render_diff(prev_snapshot, current_snapshot, line_feed_sep=line_feed_sep, html_colour=html_colour_enable), - 'diff_added': diff.render_diff(prev_snapshot, current_snapshot, include_removed=False, line_feed_sep=line_feed_sep), + 'diff_added': diff.render_diff(prev_snapshot, current_snapshot, include_removed=False, line_feed_sep=line_feed_sep, html_colour=html_colour_enable), 'diff_full': diff.render_diff(prev_snapshot, current_snapshot, include_equal=True, line_feed_sep=line_feed_sep, html_colour=html_colour_enable), 'diff_patch': diff.render_diff(prev_snapshot, current_snapshot, line_feed_sep=line_feed_sep, patch_format=True), - 'diff_removed': diff.render_diff(prev_snapshot, current_snapshot, include_added=False, line_feed_sep=line_feed_sep), + 'diff_removed': diff.render_diff(prev_snapshot, current_snapshot, include_added=False, line_feed_sep=line_feed_sep, html_colour=html_colour_enable), 'screenshot': watch.get_screenshot() if watch and watch.get('notification_screenshot') else None, 'triggered_text': triggered_text, 'uuid': watch.get('uuid') if watch else None,