arpruss / gcodeplot

Use a 3-axis machine as a pen plotter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVG viewBox

aorbe opened this issue · comments

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())))

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