[gnome-maps/wip/mlundblad/osm-add-location: 7/17] placeBubble: Only escape pure text



commit 6a0f19aaf6d187b9a8b46bb97d2d979ae275f43c
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Sat Jan 30 11:45:42 2016 +0100

    placeBubble: Only escape pure text

 src/placeBubble.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/placeBubble.js b/src/placeBubble.js
index 02c1b50..d4d41db 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -115,7 +115,7 @@ const PlaceBubble = new Lang.Class({
                 case 'country_code':
                     return _("Country code: %s").format(place[prop]);
                 default:
-                    return place[prop];
+                    return GLib.markup_escape_text(place[prop], -1);
                 }
             });
             return row.join(', ');
@@ -139,7 +139,6 @@ const PlaceBubble = new Lang.Class({
         }
 
         infos.forEach((function(info) {
-            info = GLib.markup_escape_text(info,-1);
             let label = new Gtk.Label({ label: info,
                                         visible: true,
                                         use_markup: true,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]