summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0dc7313)
raw | patch | inline | side by side (parent: 0dc7313)
author | JazzyNico <JazzyNico@users.sourceforge.net> | |
Sat, 13 Jun 2009 20:25:11 +0000 (20:25 +0000) | ||
committer | JazzyNico <JazzyNico@users.sourceforge.net> | |
Sat, 13 Jun 2009 20:25:11 +0000 (20:25 +0000) |
share/extensions/embedimage.py | patch | blob | history |
index f7f0d81d5a0e74611fe5c747eb2e6ac2f9a7d481..16439223b9cc79ebbd2127a3088ca4900833c119 100644 (file)
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
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