From da4904c8a1d866c6cf1be0c01bce8aec86c92453 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 12 Feb 2024 09:19:36 +0200 Subject: [PATCH] remove annoying \n --- files/helpers/bleach_body.py | 1 - 1 file changed, 1 deletion(-) diff --git a/files/helpers/bleach_body.py b/files/helpers/bleach_body.py index 7491d179c..2cc9e81c8 100644 --- a/files/helpers/bleach_body.py +++ b/files/helpers/bleach_body.py @@ -11,7 +11,6 @@ allowed_tags_runstime = ('div', 'input', 'label', 'score', 'button') allowed_css_properties = ('background-color', 'color', 'filter', 'font-weight', 'text-align', 'transform') def allowed_attributes(tag, name, value): - if name == 'style': value = value.lower() if 'transform' in value and 'scale' in value and ('rotate' in value or 'skew' in value):