]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Fixed multiple newlines in the distances output.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 24 Feb 2010 18:44:58 +0000 (13:44 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 24 Feb 2010 18:44:58 +0000 (13:44 -0500)
www/maps/maps/controllers/directions.py

index a16bad20bf3fe0d2e7aa89d0bc70031ffcdfe8c1..dab8f6630930ac2a2a9b60e907e0584254b9ef6f 100644 (file)
@@ -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'