mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2024-12-25 00:42:23 +00:00
Linebreaks are rendered as <<BR>> in the wiki
This commit is contained in:
parent
4506dd4dc0
commit
e5b76b7c35
@ -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,
|
||||
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,
|
||||
description=act.description.replace("\r", "").replace("\n", "<<BR>>"),
|
||||
club=act.organizer.name,
|
||||
location=act.location,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user