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

Fix trailing newline #1518

Merged
merged 4 commits into from
Oct 18, 2024
Merged

Fix trailing newline #1518

merged 4 commits into from
Oct 18, 2024

Conversation

Moosems
Copy link
Contributor

@Moosems Moosems commented Oct 18, 2024

Checks that the file has a character to reference (if there is no second character in the file, it will never equal the newline so we have to account for that)

Fixes #1505

@Moosems
Copy link
Contributor Author

Moosems commented Oct 18, 2024

Fixes #1505

For some reason saving a file with just a newline simply becomes completely empty (guess it is kinda redundant)
Copy link
Owner

@Akuli Akuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!

@Akuli Akuli merged commit b6ea2ac into Akuli:main Oct 18, 2024
18 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.

trailing_newline plugin adds a newline to blank file
2 participants