diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index cd81c9652..5589d276a 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -335,7 +335,8 @@ def sanitize(sanitized, edit=False): if bans: abort(403, description=f"Remove the banned domains {bans} and try again!") - sanitized = sanitized.replace('\n','') + if '
' not in sanitized:
+		sanitized = sanitized.replace('\n','')
 
 	if len(sanitized) > 5000:
 		sanitized = showmore_regex.sub(r'\1

\2
', sanitized)