]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/note/_note.gpx.builder
Merge branch 'master' into openstreetbugs
[rails.git] / app / views / note / _note.gpx.builder
index 91c0cbd98a5a6d19559e6af74e5c2369243f401f..8b599eb09eb1e52932616922cef9a5be2f95efe2 100644 (file)
@@ -1,6 +1,8 @@
 xml.wpt("lon" => note.lon, "lat" => note.lat) do
-  xml.desc do
-    xml.cdata! note.flatten_comment("<hr />")
+  with_format(:html) do
+    xml.desc do
+      xml.cdata! render(:partial => "description", :object => note, :format => :html)
+    end
   end
 
   xml.extension do