Skip to content

Commit

Permalink
Escape line continuation character
Browse files Browse the repository at this point in the history
* Escape line continuation character so code blocks render correctly.
* Complete truncated comment.
  • Loading branch information
sethfischer committed May 1, 2022
1 parent 2eeabc8 commit 9210072
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions cadquery/cq.py
Original file line number Diff line number Diff line change
Expand Up @@ -2794,6 +2794,7 @@ def cutEach(

return self.newObject([s])

# TODO: almost all code duplicated!
# but parameter list is different so a simple function pointer won't work
def cboreHole(
self: T,
Expand Down Expand Up @@ -2821,9 +2822,9 @@ def cboreHole(
One hole is created for each item on the stack. A very common use case is to use a
construction rectangle to define the centers of a set of holes, like so::
s = Workplane(Plane.XY()).box(2,4,0.5).faces(">Z").workplane()\
.rect(1.5,3.5,forConstruction=True)\
.vertices().cboreHole(0.125, 0.25,0.125,depth=None)
s = Workplane(Plane.XY()).box(2,4,0.5).faces(">Z").workplane()\\
.rect(1.5,3.5,forConstruction=True)\\
.vertices().cboreHole(0.125, 0.25,0.125,depth=None)
This sample creates a plate with a set of holes at the corners.
Expand Down Expand Up @@ -2876,9 +2877,9 @@ def cskHole(
One hole is created for each item on the stack. A very common use case is to use a
construction rectangle to define the centers of a set of holes, like so::
s = Workplane(Plane.XY()).box(2,4,0.5).faces(">Z").workplane()\
.rect(1.5,3.5,forConstruction=True)\
.vertices().cskHole(0.125, 0.25,82,depth=None)
s = Workplane(Plane.XY()).box(2,4,0.5).faces(">Z").workplane()\\
.rect(1.5,3.5,forConstruction=True)\\
.vertices().cskHole(0.125, 0.25,82,depth=None)
This sample creates a plate with a set of holes at the corners.
Expand Down Expand Up @@ -2924,9 +2925,9 @@ def hole(
One hole is created for each item on the stack. A very common use case is to use a
construction rectangle to define the centers of a set of holes, like so::
s = Workplane(Plane.XY()).box(2,4,0.5).faces(">Z").workplane()\
.rect(1.5,3.5,forConstruction=True)\
.vertices().hole(0.125, 0.25,82,depth=None)
s = Workplane(Plane.XY()).box(2,4,0.5).faces(">Z").workplane()\\
.rect(1.5,3.5,forConstruction=True)\\
.vertices().hole(0.125, 0.25,82,depth=None)
This sample creates a plate with a set of holes at the corners.
Expand Down

0 comments on commit 9210072

Please sign in to comment.