Skip to content

Commit 8bc670d

Browse files
SteveL-MSFTkilasuit
authored andcommitted
Add back newline for grouping with Format-Table and -Property (PowerShell#10653)
1 parent dc89ee3 commit 8bc670d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ internal static IEnumerable<ExtendedTypeDefinition> GetFormatData()
1818
.EndEntry()
1919
.EndControl();
2020

21+
var ByteCollection_GroupHeader = CustomControl.Create()
22+
.StartEntry()
23+
.StartFrame()
24+
.AddScriptBlockExpressionBinding(@"
25+
$header = "" 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F""
26+
if($_.Path) { $header = "" "" + [Microsoft.PowerShell.Commands.UtilityResources]::FormatHexPathPrefix + $_.Path + ""`r`n`r`n"" + $header }
27+
28+
$header
29+
")
30+
.EndFrame()
31+
.EndEntry()
32+
.EndControl();
33+
2134
var sharedControls = new CustomControl[] {
2235
AvailableModules_GroupingFormat
2336
};

0 commit comments

Comments
 (0)