This commit is contained in:
Aevann1 2021-10-06 11:09:14 +02:00
parent 8c697f7877
commit 948d460d47
3 changed files with 11 additions and 12 deletions

View file

@ -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*(?<!"):([^ ]{1,30}?):', new):
emoji = i.group(1).lower()
if emoji.startswith("!"):