simplify svgs even more
@@ -63,7 +63,9 @@ class SVGImage:
})
if buffer:
root.attrib['viewBox'] = ' '.join((offset_px, offset_px, width_px, height_px))
+ if len(self.defs):
root.append(self.defs)
+ if len(self.g):
root.append(self.g)
return root
