From c1caa09b1923d8cdcdcf7c329fa1359dd331b555 Mon Sep 17 00:00:00 2001 From: Alexandre Courbot Date: Thu, 30 Dec 2010 18:00:38 +0900 Subject: [PATCH] Fix paths regexp --- viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer.py b/viewer.py index abd86a91d..482571665 100755 --- a/viewer.py +++ b/viewer.py @@ -43,7 +43,7 @@ def svg2Path(svg): t = re.sub(r"[a-zA-Z]\d|\d[a-zA-Z]", lambda(m): m.group(0)[0] + " " + m.group(0)[1], t) t = re.sub(r"[a-zA-Z]\d|\d[a-zA-Z]", lambda(m): m.group(0)[0] + " " + m.group(0)[1], t) t = re.sub(r"\-\d", lambda(m): " " + m.group(0), t) - tokens = re.split(" +|,", t) + tokens = re.split("[ ,]+", t) # Convert to Qt path i = 0