Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format-Table with centered calculated property misaligns the column label #8428

Closed
mklement0 opened this issue Dec 8, 2018 · 1 comment · Fixed by #8497
Closed

Format-Table with centered calculated property misaligns the column label #8428

mklement0 opened this issue Dec 8, 2018 · 1 comment · Fixed by #8497
Assignees
Labels
Issue-Bug Issue has been identified as a bug in the product Resolution-Fixed The issue is fixed. WG-Interactive-Console the console experience

Comments

@mklement0
Copy link
Contributor

This is a regression from Windows PowerShell.

Steps to reproduce

[pscustomobject] @{ one = 1 } |
  Format-Table @{ l='one'; e='one'; width=10; alignment='center' }

Expected behavior


   one
   ---
    1


Actual behavior


one
   ---
    1

Note how the column header (one) is misaligned.

Environment data

PowerShell Core v6.2.0-preview.2 on macOS 10.14.1
PowerShell Core v6.2.0-preview.2 on Ubuntu 18.04.1 LTS
PowerShell Core v6.2.0-preview.2 on Microsoft Windows 10 Pro (64-bit; Version 1803, OS Build: 17134.407)
@iSazonov
Copy link
Collaborator

iSazonov commented Dec 8, 2018

/cc @SteveL-MSFT In our discussion about escapes I just meant that we will fix such problems endlessly.

@iSazonov iSazonov added Issue-Bug Issue has been identified as a bug in the product WG-Interactive-Console the console experience labels Dec 8, 2018
@SteveL-MSFT SteveL-MSFT self-assigned this Dec 20, 2018
@iSazonov iSazonov added the Resolution-Fixed The issue is fixed. label Dec 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Issue has been identified as a bug in the product Resolution-Fixed The issue is fixed. WG-Interactive-Console the console experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants