From 787c3aa4f5664c8404a4e2b1be07dac4c0796624 Mon Sep 17 00:00:00 2001 From: User Date: Mon, 9 Jan 2017 00:30:36 +0100 Subject: [PATCH] make old subject_part pretty --- helpdesk/lib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helpdesk/lib.py b/helpdesk/lib.py index 5813559b..4f0ded3d 100644 --- a/helpdesk/lib.py +++ b/helpdesk/lib.py @@ -82,8 +82,9 @@ def send_templated_mail(template_name, return # just ignore if template doesn't exist subject_part = from_string( - HELPDESK_EMAIL_SUBJECT_TEMPLATE % {"subject": t.subject} - ).render(context).replace('\n', '').replace('\r', '') + HELPDESK_EMAIL_SUBJECT_TEMPLATE % { + "subject": t.subject + }).render(context).replace('\n', '').replace('\r', '') footer_file = os.path.join('helpdesk', locale, 'email_text_footer.txt')