Draft: fix trailing whitespace

This commit is contained in:
luzpaz
2023-01-22 14:08:28 +00:00
committed by Uwe
parent 811fbe6e34
commit a4239ccfcf
21 changed files with 64 additions and 64 deletions

View File

@@ -39,14 +39,14 @@ def array(objectslist, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None):
"""
This function creates an array of independent objects.
Use make_array() to create a parametric array object.
Creates an array of the given objects (that can be an object or a list
of objects).
In case of rectangular array, xnum of iterations in the x direction
at xvector distance between iterations, and same for y and z directions
with yvector and ynum and zvector and znum.
In case of polar array, center is a vector, totalangle is the angle
to cover (in degrees) and totalnum is the number of objects, including
the original.
@@ -69,7 +69,7 @@ def array(objectslist, arg1, arg2, arg3, arg4=None, arg5=None, arg6=None):
def rectArray(objectslist,xvector,yvector,xnum,ynum):
utils.type_check([(xvector, App.Vector),
utils.type_check([(xvector, App.Vector),
(yvector, App.Vector),
(xnum,int), (ynum,int)],
"rectArray")

View File

@@ -45,10 +45,10 @@ DraftGeomUtils = lz.LazyLoader("DraftGeomUtils", globals(), "DraftGeomUtils")
def draftify(objectslist, makeblock=False, delete=True):
"""draftify(objectslist,[makeblock],[delete])
Turn each object of the given list (objectslist can also be a single
object) into a Draft parametric wire.
Turn each object of the given list (objectslist can also be a single
object) into a Draft parametric wire.
TODO: support more objects
Parameters
@@ -57,7 +57,7 @@ def draftify(objectslist, makeblock=False, delete=True):
makeblock : bool
If makeblock is True, multiple objects will be grouped in a block.
delete : bool
If delete = False, old objects are not deleted
"""

View File

@@ -33,7 +33,7 @@ import draftutils.gui_utils as gui_utils
def extrude(obj, vector, solid=False):
"""extrude(object, vector, [solid])
Create a Part::Extrusion object from a given object.
Parameters
@@ -42,7 +42,7 @@ def extrude(obj, vector, solid=False):
vector : Base.Vector
The extrusion direction and module.
solid : bool
TODO: describe.
"""

View File

@@ -38,11 +38,11 @@ if App.GuiUp:
def fuse(object1, object2):
"""fuse(oject1, object2)
Returns an object made from the union of the 2 given objects.
Returns an object made from the union of the 2 given objects.
If the objects are coplanar, a special Draft Wire is used, otherwise we use
a standard Part fuse.
"""
if not App.ActiveDocument:
App.Console.PrintError("No active document. Aborting\n")

View File

@@ -35,9 +35,9 @@ from draftmake.make_copy import make_copy
def heal(objlist=None, delete=True, reparent=True):
"""heal([objlist],[delete],[reparent])
Recreate Draft objects that are damaged, for example if created from an
earlier version. If ran without arguments, all the objects in the document
earlier version. If ran without arguments, all the objects in the document
will be healed if they are damaged.
Parameters
@@ -48,7 +48,7 @@ def heal(objlist=None, delete=True, reparent=True):
If delete is True, the damaged objects are deleted (default).
reparent : bool
If reparent is True (default), new objects go at the very same place
If reparent is True (default), new objects go at the very same place
in the tree than their original.
"""