Skip to content

Fix formatting of header of table when center aligned#8497

Merged
iSazonov merged 2 commits intoPowerShell:masterfrom
SteveL-MSFT:format-table-center
Dec 22, 2018
Merged

Fix formatting of header of table when center aligned#8497
iSazonov merged 2 commits intoPowerShell:masterfrom
SteveL-MSFT:format-table-center

Conversation

@SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Dec 20, 2018

PR Summary

In a previous change, it only applied padding if alignment was "right", but it should have applied padding whenever alignment was not "left" so that "center" alignment was also padded. Some existing tests needed to be updated where the third column was using center alignment and the test was expecting the header to be left aligned (due to this bug) when the header also needed to be center aligned.

Fix #8428

PR Checklist

@iSazonov iSazonov merged commit 2eb7ca8 into PowerShell:master Dec 22, 2018
@iSazonov iSazonov added the CL-Engine Indicates that a PR should be marked as an engine change in the Change Log label Jan 17, 2019
@SteveL-MSFT SteveL-MSFT deleted the format-table-center branch June 6, 2020 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Engine Indicates that a PR should be marked as an engine change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Format-Table with centered calculated property misaligns the column label

3 participants