Skip to content

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 force-pushed the v2/render-whitespace branch from 3efc563 to e0b1b12 Compare November 13, 2024 18:52
@glbrntt glbrntt enabled auto-merge (squash) November 13, 2024 18:56
@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