smaller code

pull/225/head
Aevann 2024-02-29 20:10:53 +02:00
parent 1008f17ebf
commit 83dfe26f1e
1 changed files with 2 additions and 3 deletions

View File

@ -184,12 +184,11 @@ def render_emoji(html, regexp, golden, emojis_used, b=False, is_title=False):
old = emoji
emoji = emoji.replace('!','').replace('#','')
if b and emoji not in ALPHABET_MARSEYS:
attrs += ' b'
if emoji in ALPHABET_MARSEYS:
attrs += ' alpha'
elif b:
attrs += ' b'
emoji_partial_pat = '<img alt=":{0}:" loading="lazy" src="{1}"{2}>'
emoji_partial = '<img alt=":{0}:" data-bs-toggle="tooltip" loading="lazy" src="{1}" title=":{0}:"{2}>'