fix too many whitespaces in xml output

This commit is contained in:
Laura Klünder 2017-10-20 00:59:30 +02:00
parent d4aa5eda84
commit 1b1ca2a65b

View file

@ -70,7 +70,7 @@ class SVGImage:
attribs = ' viewBox="'+' '.join((offset_px, offset_px, width_px, height_px))+'"' if buffer else ''
result = ('<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"'
' xmlns:xlink="http://www.w3.org/1999/xlink" width="'+width_px+'" height="'+height_px+'"' +
' xmlns:xlink="http://www.w3.org/1999/xlink" width="'+width_px+'" height="'+height_px+'"' +
attribs+'>')
if self.defs:
result += '<defs>'+self.defs+'</defs>'