Ahhh, I see the difference. I had applied the patch above in this bug.
But it looks like the committed version applied unquote() before assigning to href... the unquote() replaces the escape characters.
def embedImage(self, node): xlink = node.get(inkex.addNS('href','xlink')) 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[1:] path='' #path selection strategy: # 1. href if absolute # 2. realpath-ified href
Ahhh, I see the difference. I had applied the patch above in this bug.
But it looks like the committed version applied unquote() before assigning to href... the unquote() replaces the escape characters.
def embedImage(self, node): inkex.addNS( 'href', 'xlink' ))
absref= node.get( inkex.addNS( 'absref' ,'sodipodi' ))
url= urlparse. urlparse( xlink) unquote( url.path)
path= ''
xlink = node.get(
if xlink is None or xlink[:5] != 'data:':
- href=url.path
+ href=urllib.
+ if os.name == 'nt' and href[0] == '/':
+ href = href[1:]
#path selection strategy:
# 1. href if absolute
# 2. realpath-ified href