From 54792883813ad77fba4cadab5741b6b98b580b17 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 11:09:14 +0200 Subject: [PATCH] dfsfds --- files/helpers/sanitize.py | 2 +- files/templates/default.html | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 83fa12eab..fc935b04d 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -190,7 +190,7 @@ def sanitize(sanitized, noimages=False): for i in re.finditer("[^a]>\s*(:!?\w+:\s*)+<\/", sanitized): old = i.group(0) - new = old.lower().replace(">", " style='margin-bottom:0 !important'>") + if 'marseylong' in old: new = old.lower().replace(">", " style='margin-bottom:0 !important'>") for i in re.finditer('\w*(? - + @@ -73,7 +69,7 @@ {% if v %} - + {% endif %} @@ -349,6 +345,12 @@ + +