From: Michael Orlitzky Date: Wed, 24 Feb 2010 18:44:58 +0000 (-0500) Subject: Fixed multiple newlines in the distances output. X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fcensus-tools.git;a=commitdiff_plain;h=fe0f334b28cb0c3ed774e86c6067be8382f6c79e Fixed multiple newlines in the distances output. --- 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'