From db3755f613e8204f927e1201cb724544cd5bea6f Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 6 Apr 2024 05:40:59 +0200 Subject: [PATCH] fix bottom margin for marseylonggigatitty and the carplongs --- files/helpers/sanitize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 95736b933..52e757ae8 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -472,7 +472,8 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis captured.append(i.group(0)) old = i.group(0) - if 'marseylong1' in old or 'marseylong2' in old or 'marseylongcockandballs' in old or 'marseyllama1' in old or 'marseyllama2' in old: + emojis_with_no_bottom_margin = ('marseylong1', 'marseylong2', 'marseyllama1', 'marseyllama2', 'carplong1', 'carplong2', 'marseylongcockandballs', 'marseylonggigatitty') + if any((x in old for x in emojis_with_no_bottom_margin)): new = old.lower().replace(">", " class='mb-0'>") else: new = old.lower()