Improve location formatting

This commit is contained in:
Phin Wolkwitz
2026-04-27 15:26:19 +02:00
parent 74d3dcaac0
commit 3bf7aed74a
+3 -1
View File
@@ -756,7 +756,9 @@ def get_program_times(op: OrderPosition, ev: Event):
pt.end.astimezone(ev.timezone),
as_html=False
),
', '.join(l.strip() for l in str(pt.location).splitlines() if l.strip())
(', ' + ', '.join(
l.strip() for l in str(pt.location).splitlines() if l.strip())
) if str(pt.location).strip() else ''
])
return '\n'.join(''.join(l) for l in ptstr)