Skip to content

Commit a88c947

Browse files
vrnithinkumarSean Wheeler
authored and
Sean Wheeler
committed
Removing extra space in the Example 5A script (#1894)
It was highlighting as string in the documentation, I was trying to remove all the extra space.
1 parent 46d7c99 commit a88c947

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

reference/5.1/Microsoft.PowerShell.Utility/ConvertFrom-String.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -220,23 +220,23 @@ Notice the difference in alignment for the age column between both examples.
220220
### Example 5A: Get to know the generated object
221221

222222
```
223-
$template = @'
224-
{[string]Name*:Phoebe Cat}, {[string]phone:425-123-6789}, {[int]age:6}
225-
{[string]Name*:Lucky Shot}, {[string]phone:(206) 987-4321}, {[int]age:12}
226-
'@
227-
228-
$testText = @'
229-
Phoebe Cat, 425-123-6789, 6
230-
Lucky Shot, (206) 987-4321, 12
231-
Elephant Wise, 425-888-7766, 87
232-
Wild Shrimp, (111) 222-3333, 1
233-
'@
234-
235-
$testText |
236-
ConvertFrom-String -TemplateContent $template -OutVariable PersonalData |
237-
Out-Null
238-
239-
$PersonalData | Get-Member
223+
$template = @'
224+
{[string]Name*:Phoebe Cat}, {[string]phone:425-123-6789}, {[int]age:6}
225+
{[string]Name*:Lucky Shot}, {[string]phone:(206) 987-4321}, {[int]age:12}
226+
'@
227+
228+
$testText = @'
229+
Phoebe Cat, 425-123-6789, 6
230+
Lucky Shot, (206) 987-4321, 12
231+
Elephant Wise, 425-888-7766, 87
232+
Wild Shrimp, (111) 222-3333, 1
233+
'@
234+
235+
$testText |
236+
ConvertFrom-String -TemplateContent $template -OutVariable PersonalData |
237+
Out-Null
238+
239+
$PersonalData | Get-Member
240240
241241
242242

0 commit comments

Comments
 (0)