arpruss / gcodeplot

Use a 3-axis machine as a pen plotter
Other
167 stars 60 forks source link

SVG viewBox #1

Closed aorbe closed 7 years ago

aorbe commented 7 years ago

Sometimes there is space in the end of viewBox property in SVG file. So I suggest modify line 520 of parser.py to viewBox = list(map(float, re.split(r'[\s,]+', svg.attrib['viewBox'].rstrip())))

arpruss commented 7 years ago

Might as well do strip() rather than rstrip(). Done.