forked from rDrama/rDrama
fdsfd
parent
c47f7a56b2
commit
559d5b8e3d
|
@ -188,7 +188,6 @@ 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>')
|
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("[^a]>\s*(:!?\w+:\s*)+<\/", sanitized):
|
for i in re.finditer("[^a]>\s*(:!?\w+:\s*)+<\/", sanitized):
|
||||||
old = i.group(0)
|
old = i.group(0)
|
||||||
new = old.lower().replace(">", " style='margin-bottom:0 !important'>")
|
new = old.lower().replace(">", " style='margin-bottom:0 !important'>")
|
||||||
|
|
Loading…
Reference in New Issue