mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-13 13:16:39 +02:00
This commit is contained in:
parent
52289dc0db
commit
c69efa1587
@ -89,6 +89,7 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
|
|||||||
''' keep new lines in html emails '''
|
''' keep new lines in html emails '''
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
|
|
||||||
|
if context.has_key('comment'):
|
||||||
html_txt = context['comment']
|
html_txt = context['comment']
|
||||||
html_txt = html_txt.replace('\r\n', '<br>')
|
html_txt = html_txt.replace('\r\n', '<br>')
|
||||||
context['comment'] = mark_safe(html_txt)
|
context['comment'] = mark_safe(html_txt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user