fix string replacement with % (% seems to be prioriter than +). Fixes #5494
This commit is contained in:
parent
7b58e145af
commit
d15897e50e
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue