8000 Add back newline for grouping with `Format-Table` and `-Property` by SteveL-MSFT · Pull Request #10653 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@SteveL-MSFT
Copy link
Member
@SteveL-MSFT SteveL-MSFT commented Sep 30, 2019

PR Summary

When using Format-Table explicitly with -Property and -Grouping, it was missing a newline between the group and the content. Fix is to add back a newline after writing the grouping information. Also changed the default formatting of cert, registry, and files so that when there is grouping, it doesn't insert an extra newline (resulting in two). Because of the way formatting works, needed to remove use of the indent param and simply insert the indention into the resx string.

Before this change:
img

After this change:
img

dir with default table formatting is the same, but the changes were needed to keep them the same.

PR Context

Fix #9299

PR Checklist

@iSazonov iSazonov added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Oct 1, 2019
@iSazonov iSazonov added this to the 7.0.0-preview.5 milestone Oct 1, 2019
Copy link
@anmenaga anmenaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add 'before change' and 'after change' screenshots to PR description?
When I'm trying this on 7.0.0-preview.3 I see missing newlines only when -Property is specified (in addition to -GroupBy), while PR reads like this should happen always when -GroupBy is used.

@SteveL-MSFT SteveL-MSFT changed the title Add back newline for grouping with Format-Table Add back newline for grouping with Format-Table and -Property Oct 2, 2019
@SteveL-MSFT
Copy link
Member Author

@anmenaga updated title, description, and added screenshots. It only affects -Property

@anmenaga anmenaga merged commit 77ddec1 into PowerShell:master Oct 2, 2019
@ghost
Copy link
ghost commented Oct 23, 2019

🎉v7.0.0-preview.5 has been released which incorporates this pull request.:tada:

Handy links:

kilasuit pushed a commit to kilasuit/PowerShell that referenced this pull request Nov 9, 2019
@SteveL-MSFT SteveL-MSFT deleted the grouping-linebreak branch June 6, 2020 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delimiting lines have reduced or disappeared since version 6.2.0

3 participants

0