Skip to content
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

Don't render just spaces in a line #2114

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 13, 2024

Motivation:

If a blank line is render, the text based renderer will include the current indentation level resulting in lines with just spaces.

Modifications:

  • Don't include indentation if the line to render is otherwise empty

Result:

Less trailing whitespace.

@glbrntt glbrntt requested a review from gjcairo November 13, 2024 18:45
@glbrntt glbrntt added the semver/patch No public API change. label Nov 13, 2024
Motivation:

If a blank line is render, the text based renderer will include the
current indentation level resulting in lines with just spaces.

Modifications:

- Don't include indentation if the line to render is otherwise empty

Result:

Less trailing whitespace.
@glbrntt glbrntt merged commit 6bcdbb2 into grpc:main Nov 14, 2024
44 of 45 checks passed
@glbrntt glbrntt deleted the v2/render-whitespace branch November 14, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants