From cd658c953bb4a8f61e5fba696c23464fcbcba670 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 22 Dec 2014 12:54:09 +0100 Subject: [PATCH] + fix whitespaces in Python module --- src/Mod/Draft/Draft.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 1015823aaa..75b656fa41 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -1747,14 +1747,14 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct egroups.append(w.Edges) for g in egroups: edges = DraftGeomUtils.sortEdges(g) - e0=edges[0] + e0=edges[0] v = getProj(e0.Vertexes[-1*(e0.Orientation=="Reversed")].Point) svg += 'M '+ str(v.x) +' '+ str(v.y) + ' ' for e in edges: - if e.Orientation == "Forward": - vs = e.Vertexes - else: - vs = e.Vertexes[::-1] + if e.Orientation == "Forward": + vs = e.Vertexes + else: + vs = e.Vertexes[::-1] iscircle = DraftGeomUtils.geomType(e) == "Circle" isellipse = DraftGeomUtils.geomType(e) == "Ellipse" if iscircle or isellipse: @@ -1789,7 +1789,7 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct flag_large_arc = (((e.ParameterRange[1] - \ e.ParameterRange[0]) / math.pi) % 2) > 1 flag_sweep = (c.Axis * drawing_plane_normal >= 0) \ - == (e.Orientation == "Forward") + == (e.Orientation == "Forward") for v in endpoints: svg += 'A %s %s %s %s %s %s %s ' % \ (str(rx),str(ry),str(rot),\