svgutil: fix string prefix
This commit is contained in:
parent
66cd7c871e
commit
fe934e9375
|
@ -46,9 +46,9 @@ def getSizeInMM(tree):
|
|||
def getViewBox(tree):
|
||||
root = tree.getroot()
|
||||
m = re.match(r"\s*(-?\d+\.?\d*)\s+"
|
||||
"(-?\d+\.?\d*)\s+"
|
||||
"(-?\d+\.?\d*)\s+"
|
||||
"(-?\d+\.?\d)\s*", root.get("viewBox"))
|
||||
r"(-?\d+\.?\d*)\s+"
|
||||
r"(-?\d+\.?\d*)\s+"
|
||||
r"(-?\d+\.?\d)\s*", root.get("viewBox"))
|
||||
|
||||
return [float(m) for m in m.groups()]
|
||||
|
||||
|
|
Loading…
Reference in New Issue