From fe0f334b28cb0c3ed774e86c6067be8382f6c79e Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 24 Feb 2010 13:44:58 -0500 Subject: [PATCH] Fixed multiple newlines in the distances output. --- www/maps/maps/controllers/directions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/maps/maps/controllers/directions.py b/www/maps/maps/controllers/directions.py index a16bad2..dab8f66 100644 --- a/www/maps/maps/controllers/directions.py +++ b/www/maps/maps/controllers/directions.py @@ -101,7 +101,7 @@ class DirectionsController(BaseController): row += ', ' row += str(float(route['distance']['value']) / 1000) row += "\n" - + return row @@ -110,7 +110,7 @@ class DirectionsController(BaseController): csv = '' for result in directions_array: - csv += self.directions_result_to_csv(result) + "\n" + csv += self.directions_result_to_csv(result) response.content_type = 'text/csv' response.headers['Content-disposition'] = 'attachment; filename=distances.csv' -- 2.43.2