From 93950d3fac987e2553fd27384587cb58871d13bb Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 17 Jan 2023 13:17:58 +0100 Subject: [PATCH] Presale: separate multiple lines by comma in ical event location (#3037) --- src/pretix/presale/ical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/presale/ical.py b/src/pretix/presale/ical.py index cab7641431..464827a656 100644 --- a/src/pretix/presale/ical.py +++ b/src/pretix/presale/ical.py @@ -57,7 +57,7 @@ def get_public_ical(events): vevent.add('summary').value = str(ev.name) vevent.add('dtstamp').value = creation_time if ev.location: - vevent.add('location').value = str(ev.location) + vevent.add('location').value = ", ".join(l.strip() for l in str(ev.location).splitlines() if l.strip()) vevent.add('uid').value = 'pretix-{}-{}-{}@{}'.format( event.organizer.slug, event.slug, ev.pk if not isinstance(ev, Event) else '0',