From 8ac396e30db3e76c70ec608b7062287d414672ce Mon Sep 17 00:00:00 2001 From: Ashwini Save Date: Mon, 3 Jul 2017 12:25:54 +0530 Subject: [PATCH] Email configurable footer (#3584) * Configurable footer for email template. * Configurable footer: New table row for new line. * Configurable footer: Updated space above footer text. --- frappe/email/email_body.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frappe/email/email_body.py b/frappe/email/email_body.py index 1c450d522f..a7dc579189 100755 --- a/frappe/email/email_body.py +++ b/frappe/email/email_body.py @@ -298,8 +298,13 @@ def get_footer(email_account, footer=None): company_address = frappe.db.get_default("email_footer_address") if company_address: - footer += '
{0}
'\ - .format(company_address.replace("\n", "
")) + company_address = company_address.splitlines(True) + footer += '' + footer += '' + for x in company_address: + footer += ''\ + .format(x) + footer += "
{0}
" if not cint(frappe.db.get_default("disable_standard_email_footer")): for default_mail_footer in frappe.get_hooks("default_mail_footer"):