From 86bc2d269853ad60391e242ff655f0dc83b5967d Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 13 Dec 2021 17:30:02 +0100 Subject: [PATCH] Add space before line breaks in Wiki export of activities Signed-off-by: Yohann D'ANELLO --- management/commands/refresh_activities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/commands/refresh_activities.py b/management/commands/refresh_activities.py index 71fa433..a4d5d99 100644 --- a/management/commands/refresh_activities.py +++ b/management/commands/refresh_activities.py @@ -100,7 +100,7 @@ class Command(BaseCommand): title=act.name, start=timezone.localtime(act.date_start).strftime("%Y-%m-%d %H:%M"), end=timezone.localtime(act.date_end).strftime("%Y-%m-%d %H:%M"), - description=act.description.replace("\r", "").replace("\n", "<
>"), + description=act.description.replace("\r", "").replace("\n", " <
>"), club=act.organizer.name, location=act.location, ) @@ -108,7 +108,7 @@ class Command(BaseCommand): return "|| {start} || {title} || {description} || {club} || {location} ||".format( title=act.name, start=timezone.localtime(act.date_start).strftime("%d/%m/%Y"), - description=act.description.replace("\r", "").replace("\n", "<
>"), + description=act.description.replace("\r", "").replace("\n", " <
>"), club=act.organizer.name, location=act.location, )