From d06955028497231d26774a56b190c23046e5e121 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 4 Aug 2022 21:31:13 +0200 Subject: [PATCH] fix issue with showmore button breaking divs --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 3def8839b..4d9ac68d1 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -389,7 +389,7 @@ def sanitize(sanitized, edit=False): sanitized = sanitized.replace('\n','') if len(sanitized) > 5000: - sanitized = showmore_regex.sub(r'\1

\2
', sanitized) + sanitized = showmore_regex.sub(r'\1

\2', sanitized) return sanitized.strip()