From 15ad2ed68c5dc6c3c00fe579d0971eddc5b04819 Mon Sep 17 00:00:00 2001 From: kvprasoon Date: Wed, 3 Jan 2018 23:12:13 +0530 Subject: [PATCH 1/2] Help doc correction Removed an unwanted * from Notes section Corrected intenting for last example Removed unwanted ... from example 2 --- .../ConvertFrom-StringData.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/6/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md b/reference/6/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md index 33cee464f251..af8f1330fc97 100644 --- a/reference/6/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md +++ b/reference/6/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md @@ -70,13 +70,14 @@ TypeName: System.String Name MemberType Definition ---- ---------- ---------- Clone Method System.Object Clone() -... PS C:\> $Hash = ConvertFrom-StringData -StringData $P + +PS C:\> $Hash = ConvertFrom-StringData -StringData $P PS C:\> $Hash | Get-Member TypeName: System.Collections.Hashtable Name MemberType Definition ---- ---------- ---------- Add Method System.Void Add(Object key, Object -... + ``` These commands demonstrate that **ConvertFrom-StringData** actually converts a here-string to a hash table. @@ -288,9 +289,8 @@ This cmdlet returns a hash table that it creates from the key/value pairs. * A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally. This cmdlet can be useful in scripts that display user messages in multiple spoken languages. -You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. + You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. -* ## RELATED LINKS From 770142a295fd5f2123f6d8a146c6c27f29d20069 Mon Sep 17 00:00:00 2001 From: kvprasoon Date: Wed, 3 Jan 2018 23:20:53 +0530 Subject: [PATCH 2/2] Help doc wnhancements in all versions for ConvertFrom-StringData Removed an unwanted * from Notes section Corrected intenting for last example Removed unwanted ... from example 2 --- .../ConvertFrom-StringData.md | 7 +++---- .../ConvertFrom-StringData.md | 7 +++---- .../ConvertFrom-StringData.md | 8 ++++---- .../ConvertFrom-StringData.md | 8 ++++---- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/reference/3.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md b/reference/3.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md index 8b77d5081fd9..d0e26d8caecc 100644 --- a/reference/3.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md +++ b/reference/3.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md @@ -66,7 +66,7 @@ TypeName: System.String Name MemberType Definition ---- ---------- ---------- Clone Method System.Object Clone() -... + PS C:\> $hash = convertfrom-stringdata -stringdata $p PS C:\> $hash | get-member TypeName: System.Collections.Hashtable @@ -74,7 +74,7 @@ TypeName: System.Collections.Hashtable Name MemberType Definition ---- ---------- ---------- Add Method System.Void Add(Object key, Object -... + ``` These commands demonstrate that ConvertFrom-StringData actually converts a here-string to a hash table. @@ -246,9 +246,8 @@ ConvertFrom-StringData returns a hash table that it creates from the key/value p * A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally. For more information, see about_Quoting_Rules. ConvertFrom-StringData can be useful in scripts that display user messages in multiple spoken languages. -You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. + You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. -* ## RELATED LINKS [about_Quoting_Rules](../Microsoft.PowerShell.Core/About/about_Quoting_Rules.md) diff --git a/reference/4.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md b/reference/4.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md index 0ff4ddf17f0a..4503480cd63e 100644 --- a/reference/4.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md +++ b/reference/4.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md @@ -69,7 +69,7 @@ TypeName: System.String Name MemberType Definition ---- ---------- ---------- Clone Method System.Object Clone() -... + PS C:\> $hash = convertfrom-stringdata -stringdata $p PS C:\> $hash | get-member TypeName: System.Collections.Hashtable @@ -77,7 +77,7 @@ TypeName: System.Collections.Hashtable Name MemberType Definition ---- ---------- ---------- Add Method System.Void Add(Object key, Object -... + ``` These commands demonstrate that ConvertFrom-StringData actually converts a here-string to a hash table. @@ -259,9 +259,8 @@ ConvertFrom-StringData returns a hash table that it creates from the key/value p * A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally. For more information, see about_Quoting_Rules. ConvertFrom-StringData can be useful in scripts that display user messages in multiple spoken languages. -You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. + You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. -* ## RELATED LINKS diff --git a/reference/5.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md b/reference/5.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md index cde192d770e5..9b7be61d5e7b 100644 --- a/reference/5.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md +++ b/reference/5.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md @@ -68,13 +68,14 @@ TypeName: System.String Name MemberType Definition ---- ---------- ---------- Clone Method System.Object Clone() -... PS C:\> $Hash = ConvertFrom-StringData -StringData $P + +PS C:\> $Hash = ConvertFrom-StringData -StringData $P PS C:\> $Hash | Get-Member TypeName: System.Collections.Hashtable Name MemberType Definition ---- ---------- ---------- Add Method System.Void Add(Object key, Object -... + ``` These commands demonstrate that **ConvertFrom-StringData** actually converts a here-string to a hash table. @@ -251,9 +252,8 @@ This cmdlet returns a hash table that it creates from the key/value pairs. * A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally. This cmdlet can be useful in scripts that display user messages in multiple spoken languages. -You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. + You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. -* ## RELATED LINKS diff --git a/reference/5.1/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md b/reference/5.1/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md index a1b6f1fa36ba..4a52dfe0f0a8 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md @@ -69,13 +69,14 @@ TypeName: System.String Name MemberType Definition ---- ---------- ---------- Clone Method System.Object Clone() -... PS C:\> $Hash = ConvertFrom-StringData -StringData $P + +PS C:\> $Hash = ConvertFrom-StringData -StringData $P PS C:\> $Hash | Get-Member TypeName: System.Collections.Hashtable Name MemberType Definition ---- ---------- ---------- Add Method System.Void Add(Object key, Object -... + ``` These commands demonstrate that **ConvertFrom-StringData** actually converts a here-string to a hash table. @@ -252,9 +253,8 @@ This cmdlet returns a hash table that it creates from the key/value pairs. * A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally. This cmdlet can be useful in scripts that display user messages in multiple spoken languages. -You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. + You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools. -* ## RELATED LINKS