Fix an error rendering books with svg images

This commit is contained in:
Kovid Goyal 2017-05-30 08:57:42 +05:30
parent b77091f191
commit a9a4d8b190
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -355,7 +355,7 @@ def link_replacer(base, url):
changed.add(name)
elif mt == 'image/svg+xml':
self.virtualized_names.add(name)
changed = False
changed.add(name)
xlink = XLINK('href')
for elem in xlink_xpath(self.parsed(name)):
elem.set(xlink, link_replacer(name, elem.get(xlink)))