From df5e986fef1cfc73c194a2eb97a41d0ad62f382d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Mon, 24 Oct 2016 22:40:56 +0200 Subject: [PATCH] program xml: strip string in address --- planning/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planning/utils.py b/planning/utils.py index a873ebe..6cbcfc8 100644 --- a/planning/utils.py +++ b/planning/utils.py @@ -184,7 +184,7 @@ class Program: """ % { 'title': self.site.name, - 'venue': ', '.join(conference.venue.split('\n')), + 'venue': ', '.join(map(lambda x: x.strip(), conference.venue.split('\n'))), 'city': conference.city, 'start_date': sorted(self.days.keys())[0].strftime('%Y-%m-%d'), 'end_date': sorted(self.days.keys(), reverse=True)[0].strftime('%Y-%m-%d'),