master
Aevann1 2021-10-06 07:37:07 +02:00
parent 40c2c7ec02
commit c47f7a56b2
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ def sanitize(sanitized, noimages=False):
if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '<span class="spoiler">').replace(end, '</span>')
print(sanitized)
for i in re.finditer("[^'\"]>\s*(:!?\w+:\s*)+<\/", sanitized):
for i in re.finditer("[^a]>\s*(:!?\w+:\s*)+<\/", sanitized):
old = i.group(0)
new = old.lower().replace(">", " style='margin-bottom:0 !important'>")
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', new):