From d15897e50e78e198e7c6b583a282e3cb27e7ee4f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 7 Dec 2009 20:42:24 +0100 Subject: [PATCH] fix string replacement with % (% seems to be prioriter than +). Fixes #5494 --- src/chat_control.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 91b0b2b99..de4262086 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1689,8 +1689,9 @@ class ChatControl(ChatControlBase): if 'location' in self.contact.pep: location = self.contact.pep['location']._pep_specific_data if ('lat' in location) and ('lon' in location): - uri = 'http://www.openstreetmap.org/?mlat=%(lat)s&mlon=%(lon)s&' + \ - 'zoom=16' % {'lat': location['lat'], 'lon': location['lon']} + uri = 'http://www.openstreetmap.org/?' + \ + 'mlat=%(lat)s&mlon=%(lon)s&zoom=16' % {'lat': location['lat'], + 'lon': location['lon']} helpers.launch_browser_mailer('url', uri) def _on_window_motion_notify(self, widget, event):