Skip to content

Commit 188dccc

Browse files
feat: Turtle.get/set_Element ( Fixes #248 )
Omitting SVG if there are no inner turtles
1 parent e6af57e commit 188dccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Types/Turtle/get_Element.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if ($this.'.Element'.ElementName) {
4545
)>$(
4646
# Now include any child elements.
4747
# First, if we have drawn anything in our turtle, include that
48-
if ($this.Steps -or $this.Text -or $this.Turtles) {
48+
if ($this.Steps -or $this.Text -or $this.Turtles.Count) {
4949
$this.SVG.OuterXml
5050
}
5151
@(foreach ($childCollection in 'child','ChildNodes','Children','Content') {

0 commit comments

Comments
 (0)