From a1930f68af53e44f7bba33863d325f413762be37 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Fri, 17 May 2024 14:55:10 +0200 Subject: [PATCH] fix styles --- src/rer/newsletter/browser/message/messagepreview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rer/newsletter/browser/message/messagepreview.py b/src/rer/newsletter/browser/message/messagepreview.py index 3a9a2d8f..59da806a 100644 --- a/src/rer/newsletter/browser/message/messagepreview.py +++ b/src/rer/newsletter/browser/message/messagepreview.py @@ -31,7 +31,8 @@ def getMessageStyle(self): break if not channel: return DEFAULT_STYLES - return DEFAULT_STYLES + getattr(channel, "css_style", "") + channel_styles = getattr(channel, "css_style", "") or "" + return DEFAULT_STYLES + channel_styles @property def channel(self):