Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets

Workaround for support of class attribute in SVG tags (#3)

Changed files
+2
drawSvg
+2
drawSvg/elements.py
···
if v is None: continue
k = k.replace('__', ':')
k = k.replace('_', '-')
+
if k[-1]=='-':
+
k = k[:-1]
if isinstance(v, defs.DrawingDef):
v = 'url(#{})'.format(v.id)
outputFile.write(' {}="{}"'.format(k,v))