[nautilus] replace space with %20 so you don't paste broken links

This commit is contained in:
Hylke Bons 2010-09-04 13:25:08 +01:00
parent d0338b4aae
commit 1b59cc3179

View file

@ -87,7 +87,9 @@ class SparkleShareExtension (nautilus.MenuProvider):
if "gitorious.org" in url:
url = "http://" + url + "/blobs/master" + relative_path
if "github.com" in url:
url = "http://" + url + "/raw/master" + relative_path
url = "http://" + url + "/raw/master" + relative_path
url = url.replace (" ", "%20");
clipboard = gtk.clipboard_get ()
clipboard.set_text (url)