Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Add space before line breaks in Wiki export of activities
· 86bc2d26
ynerant
authored
Dec 13, 2021
Signed-off-by:
Yohann D'ANELLO
<
ynerant@crans.org
>
86bc2d26
Hide whitespace changes
Inline
Side-by-side
management/commands/refresh_activities.py
View file @
86bc2d26
...
...
@@ -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
"
,
"
<<BR>>
"
),
description
=
act
.
description
.
replace
(
"
\r
"
,
""
).
replace
(
"
\n
"
,
"
<<BR>>
"
),
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
"
,
"
<<BR>>
"
),
description
=
act
.
description
.
replace
(
"
\r
"
,
""
).
replace
(
"
\n
"
,
"
<<BR>>
"
),
club
=
act
.
organizer
.
name
,
location
=
act
.
location
,
)
...
...