diff --git a/pyproject.toml b/pyproject.toml index 58b7f50018..288f08c76b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dependencies = [ "celery==5.3.*", "chardet==5.2.*", "cryptography>=3.4.2", - "css-inline==0.8.*", + "css-inline==0.13.*", "defusedcsv>=1.1.0", "dj-static", "Django==4.2.*", diff --git a/src/pretix/base/email.py b/src/pretix/base/email.py index 60b888e858..137d3fb51a 100644 --- a/src/pretix/base/email.py +++ b/src/pretix/base/email.py @@ -189,7 +189,7 @@ class TemplateBasedMailRenderer(BaseHTMLMailRenderer): tpl = get_template(self.template_name) body_html = tpl.render(htmlctx) - inliner = css_inline.CSSInliner(remove_style_tags=True) + inliner = css_inline.CSSInliner(keep_style_tags=False) body_html = inliner.inline(body_html) return body_html diff --git a/src/pretix/base/services/notifications.py b/src/pretix/base/services/notifications.py index bc34ad3537..0680482f20 100644 --- a/src/pretix/base/services/notifications.py +++ b/src/pretix/base/services/notifications.py @@ -136,7 +136,7 @@ def send_notification_mail(notification: Notification, user: User): tpl_html = get_template('pretixbase/email/notification.html') body_html = tpl_html.render(ctx) - inliner = css_inline.CSSInliner(remove_style_tags=True) + inliner = css_inline.CSSInliner(keep_style_tags=False) body_html = inliner.inline(body_html) tpl_plain = get_template('pretixbase/email/notification.txt')