Skip to content

Revert "Update formatter to not write newlines if content is empty (#11193)" #11342

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

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

iSazonov
Copy link
Collaborator

@iSazonov iSazonov commented Dec 14, 2019

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

@iSazonov iSazonov added the CL-NotInBuild Indicates that a PR is reverted and not part of the build. label Dec 14, 2019
@iSazonov iSazonov self-assigned this Dec 14, 2019
@iSazonov iSazonov added this to the 7.1.0-preview.1 milestone Dec 14, 2019
@SteveL-MSFT
Copy link
Member

Should we add a test for the Get-Help scenario?

@iSazonov
Copy link
Collaborator Author

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.

@SteveL-MSFT
Copy link
Member

@iSazonov not suggesting we change Get-Help itself, but a test for (Get-Help Out-Null).Examples

@iSazonov
Copy link
Collaborator Author

I will pull the test in follow PR (revert PR is not right place).

@iSazonov iSazonov merged commit dfb5b04 into PowerShell:master Dec 17, 2019
@iSazonov iSazonov deleted the revert-formatter-null branch December 17, 2019 19:53
@daxian-dbw
Copy link
Member

@iSazonov @SteveL-MSFT Since #11193 was reverted, is there an issue opened to track the original problem that PR was trying to fix?

@iSazonov
Copy link
Collaborator Author

@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.

@ghost
Copy link

ghost commented Mar 26, 2020

🎉v7.1.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CL-NotInBuild Indicates that a PR is reverted and not part of the build.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get-Help does not display whole example body
5 participants