We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Turtle.get_TextElement
1 parent b4d63c4 commit 74fb0c6Copy full SHA for 74fb0c6
Types/Turtle/get_TextElement.ps1
@@ -42,7 +42,6 @@ if ($this.fill -ne 'transparent') {
42
}
43
44
45
-
46
# Text Attributes can exist in Attribute or SVGAttribute, as long as they are prefixed.
47
$prefix = '^/?text/'
48
foreach ($collection in 'Attribute','SVGAttribute') {
@@ -72,6 +71,9 @@ return [xml]@(
72
71
if ($this.Title) {
73
# embed it here (so that the text is accessible).
74
"<title>$([Security.SecurityElement]::Escape($this.Title))</title>"
+} else {
75
+ # otherwise, use the text as the title.
76
+ "<title>$([Security.SecurityElement]::Escape($this.Text))</title>"
77
78
79
# If there are any text animations, include them here.
0 commit comments