diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2009-06-13 20:25:11 +0000 |
|---|---|---|
| committer | JazzyNico <JazzyNico@users.sourceforge.net> | 2009-06-13 20:25:11 +0000 |
| commit | db69461134ebb800be92c136965c4543f9b6d4e6 (patch) | |
| tree | a76e234b29b29f7719ed052a97c43bdd968bfdac /share | |
| parent | embedimage.py patch #3 for Bug #386069 (diff) | |
| download | inkscape-db69461134ebb800be92c136965c4543f9b6d4e6.tar.gz inkscape-db69461134ebb800be92c136965c4543f9b6d4e6.zip | |
embedimage.py patch #4 for Bug #386069
(bzr r8074)
Diffstat (limited to 'share')
| -rw-r--r-- | share/extensions/embedimage.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/extensions/embedimage.py b/share/extensions/embedimage.py index f7f0d81d5..16439223b 100644 --- a/share/extensions/embedimage.py +++ b/share/extensions/embedimage.py @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ''' -import inkex, os, base64, urlparse +import inkex, os, base64, urlparse, urllib import gettext _ = gettext.gettext @@ -56,9 +56,9 @@ class Embedder(inkex.Effect): if xlink is None or xlink[:5] != 'data:': absref=node.get(inkex.addNS('absref','sodipodi')) url=urlparse.urlparse(xlink) - href=url.path + href=urllib.unquote(url.path) if os.name == 'nt' and href[0] == '/': - href = href[3:] + href = href[1:] path='' #path selection strategy: # 1. href if absolute |
