sfdsfd
This commit is contained in:
parent
a150595189
commit
3da777faf4
1 changed files with 5 additions and 1 deletions
|
@ -225,7 +225,11 @@ def sanitize(sanitized, noimages=False):
|
|||
else: session["favorite_emojis"][emoji] = 1
|
||||
except:
|
||||
pass
|
||||
sanitized = sanitized.replace("<p>" + i.group(0).lower(), '<p style="margin-bottom:0 !important>' + emojis)
|
||||
old = "<p>" + i.group(0).lower()
|
||||
print(old)
|
||||
new = '<p style="margin-bottom:0 !important>' + emojis
|
||||
print(new)
|
||||
sanitized = sanitized.replace(old, new)
|
||||
|
||||
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', sanitized):
|
||||
emoji = i.group(1).lower()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue