mirror of
https://github.com/pretix/pretix.git
synced 2026-08-12 11:07:02 +00:00
Improve location formatting
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user