From bc091de92d84bc31e3de5e7d05c31d798d60f061 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 25 Feb 2023 18:01:54 +0200 Subject: [PATCH] add another \n before chud images --- files/helpers/sanitize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 2c6164f56..9a0e252dd 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -321,7 +321,7 @@ def sanitize_settings_text(sanitized:Optional[str], max_length:Optional[int]=Non chud_images = listdir("files/assets/images/chud") -chud_images = [f'![](/i/chud/{f})' for f in chud_images] +chud_images = [f'\n![](/i/chud/{f})' for f in chud_images] chud_images.extend([':#trumpjaktalking:', ':#reposthorse:']) def handle_youtube_links(url): @@ -371,7 +371,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys if torture: sanitized = torture_ap(sanitized, g.v.username) to_add = random.choice(chud_images) - sanitized += f'\n{to_add}' + sanitized += f'\n\n{to_add}' sanitized = normalize_url(sanitized)