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

Retain single line breaks #159

Merged
merged 2 commits into from Feb 10, 2024
Merged

Conversation

braydonk
Copy link
Collaborator

Closes #152

This PR adds a new formatter config option retain_line_breaks_single which will retain line breaks, but in large groups of line breaks only keep one at a time. So this:

a: 1



b: 1

Becomes:

a: 1

b: 1

@braydonk braydonk merged commit 449dacb into google:main Feb 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: allow to retain some empty lines
1 participant