Remove extra line before formatting group#12163
Remove extra line before formatting group#12163TravisEz13 merged 4 commits intoPowerShell:masterfrom
Conversation
src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs
Outdated
Show resolved
Hide resolved
cb52a75 to
76b436b
Compare
src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs
Show resolved
Hide resolved
JamesWTruher
left a comment
There was a problem hiding this comment.
although we don't usually have validation for formatting, it would be useful to have the discussion include what this looks like now vs your fix with some sample output.
src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs
Show resolved
Hide resolved
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
The PR removes first extra empty line - you can see screenshots in related issue. |
|
@SteveL-MSFT @JamesWTruher Can you update your review? |
JamesWTruher
left a comment
There was a problem hiding this comment.
looks fine, it should probably done for format-list too
|
It would be good to audit the rest of the system. IMO gci still outputs several unnecessary new lines, which makes it too verbose. Clearly this PR is the correct fix, but future exploring this has utility. |
|
@musm If you don't see already opened issues for broken formatting please open new ones. |
|
WIll do, Thanks for this fix! |
|
🎉 Handy links: |
PR Summary
Fix #11846.
Add newline only before each formatting group except first.
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.