Commit ab974b59 authored by Jérome Perrin's avatar Jérome Perrin

deferred_style: only support html notification

parent b5325817
...@@ -30,13 +30,7 @@ if prefs.getPreferredDeferredReportStoredAsDocument(): ...@@ -30,13 +30,7 @@ if prefs.getPreferredDeferredReportStoredAsDocument():
notification_mapping_dict = { notification_mapping_dict = {
'report_link_list': report_url_text, 'report_link_list': report_url_text,
} }
if notification_message.getContentType() == "text/html": message = notification_message.asEntireHTML(
message = notification_message.asEntireHTML(
safe_substitute=False,
substitution_method_parameter_dict={'mapping_dict': notification_mapping_dict})
else:
message_text_format = "text/plain"
message = notification_message.asText(
safe_substitute=False, safe_substitute=False,
substitution_method_parameter_dict={'mapping_dict': notification_mapping_dict}) substitution_method_parameter_dict={'mapping_dict': notification_mapping_dict})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment