From 81732dd2bfd812b11a45301a6fd0dd385040ce5d Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Thu, 25 Jan 2024 13:43:36 +0100 Subject: [PATCH] [IMP] mail_debrand: keep the decoration (grey border) where the branding was when using mail.mail_notification_light as a wrapper --- mail_debrand/models/mail_render_mixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_debrand/models/mail_render_mixin.py b/mail_debrand/models/mail_render_mixin.py index 063d92e6d..adef7ce5b 100644 --- a/mail_debrand/models/mail_render_mixin.py +++ b/mail_debrand/models/mail_render_mixin.py @@ -41,9 +41,9 @@ class MailRenderMixin(models.AbstractModel): # Remove "Powered by", "using" etc. previous = elem.getprevious() if previous is not None: - previous.tail = "" + previous.tail = etree.CDATA(" ") elif parent.text: - parent.text = "" + parent.text = etree.CDATA(" ") parent.remove(elem) value = etree.tostring( tree, pretty_print=True, method="html", encoding="unicode"