Revert "Update formatter to not write newlines if content is empty (#11193)"#11342
Conversation
…owerShell#11193)" This reverts commit 51d2523.
src/System.Management.Automation/FormatAndOutput/common/ComplexWriter.cs
Show resolved
Hide resolved
|
Should we add a test for the Get-Help scenario? |
The scenario is a side effect. If we change Get-Help we can lost the new test. I don't know how create more common and reliable test. |
|
@iSazonov not suggesting we change |
|
I will pull the test in follow PR (revert PR is not right place). |
|
@iSazonov @SteveL-MSFT Since #11193 was reverted, is there an issue opened to track the original problem that PR was trying to fix? |
|
@daxian-dbw Original issue was discovered by @SteveL-MSFT but not registered so we haven't tracking issue. I do not know whether it is important for @SteveL-MSFT. |
|
🎉 Handy links: |
PR Summary
This reverts commit 51d2523. (#11193)
PR Context
Fix #11340
It seems we filter out a null too late.
We need to have more info about a scenario we tried to fix in #11193.
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.