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

the blank line update #10

Merged
merged 1 commit into from
Dec 13, 2023
Merged

the blank line update #10

merged 1 commit into from
Dec 13, 2023

Conversation

arnetheduck
Copy link
Owner

Based on popular feedback, nph will now retain most empty lines in code as they are often used to signal logical grouping.

Similar to black / prettier and somewhat similar to nimpretty, this PR moves blank line handlng to a "normalisation" strategy where excessive blanks are removed, some blanks are inserted aroound complex statements and user-entered blanks are retained, normalising them to a single line.

  • output yaml trees for debugging
  • line-break postfix comments
  • fix some missing mid comments
  • remove comma after push

Based on popular feedback, nph will now retain most empty lines in code
as they are often used to signal logical grouping.

Similar to black / prettier and somewhat similar to nimpretty, this PR
moves blank line handlng to a "normalisation" strategy where excessive
blanks are removed, some blanks are inserted aroound complex statements
and user-entered blanks are retained, normalising them to a single line.

* output yaml trees for debugging
* line-break postfix comments
* fix some missing mid comments
* remove comma after `push`
@arnetheduck arnetheduck merged commit 96d02fd into master Dec 13, 2023
6 checks passed
@arnetheduck arnetheduck deleted the spacing branch December 13, 2023 16:08
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.

1 participant