Skip to content

Format-Table left aligns header for right aligned column #7078

@powercode

Description

@powercode

Steps to reproduce

class X {	
	[string] $s
	[int] $I
}

[X] @{
	I = 1123098
	S = "Text"
}

Expected behavior

s          I
-          -
Text 1123098

Actual behavior

s    I
-          -
Text 1123098

Environment data

Name                           Value
----                           -----
PSVersion                      6.1.0-preview.3
PSEdition                      Core
GitCommitId                    v6.1.0-preview.3
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

This does not happen on Windows PowerShell 5.1 or pwsh 6.0.2.

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions