diff --git a/svg2mod/svg/svg/svg.py b/svg2mod/svg/svg/svg.py index 244fdaa..e5f3a58 100644 --- a/svg2mod/svg/svg/svg.py +++ b/svg2mod/svg/svg/svg.py @@ -258,10 +258,10 @@ class Group(Transformable): def __init__(self, elt=None): Transformable.__init__(self, elt) - + self.name = "" if elt is not None: - + for id, value in elt.attrib.iteritems(): id = self.parse_name( id ) @@ -401,7 +401,7 @@ def parse(self, pathstr): # Close Path l = Segment(current_pt, start_pt) self.items.append(l) - + current_pt = start_pt elif command in 'LHV': # LineTo, Horizontal & Vertical line @@ -708,4 +708,3 @@ def default(self, obj): tag = getattr(cls, 'tag', None) if tag: svgClass[svg_ns + tag] = cls -