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