]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Fix indentation in email template
[rails.git] / app / models / node.rb
index f8559dca75d74431153342f4c4c987281a5354e8..6346907f1ef88354ee098f1ee8c72c774898b1ad 100644 (file)
@@ -185,8 +185,8 @@ class Node < ActiveRecord::Base
     add_metadata_to_xml_node(el, self, changeset_cache, user_display_name_cache)
 
     if visible?
-      el["lat"] = lat.to_s
-      el["lon"] = lon.to_s
+      el["lat"] = format("%.7f", lat)
+      el["lon"] = format("%.7f", lon)
     end
 
     add_tags_to_xml_node(el, node_tags)