HTML Notification Color fixes - Reverting colors and using older style (#3545)

This commit is contained in:
dgtlmoon
2025-10-25 16:02:34 +02:00
committed by GitHub
parent e44853c439
commit 01a938d7ce
4 changed files with 71 additions and 6 deletions

View File

@@ -306,8 +306,8 @@ def process_notification(n_object: NotificationContextData, datastore):
if 'html' in requested_output_format:
n_body = n_body.replace(CUSTOM_LINEBREAK_PLACEHOLDER, '<br>\n')
else:
# Just incase
n_body = n_body.replace(CUSTOM_LINEBREAK_PLACEHOLDER, '')
# Markup, text types etc
n_body = n_body.replace(CUSTOM_LINEBREAK_PLACEHOLDER, '\r\n')
sent_objs.append({'title': n_title,
'body': n_body,