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

add option to support keep empty line at the end of file #9

Open
HerrCai0907 opened this issue Jun 13, 2024 · 4 comments
Open

add option to support keep empty line at the end of file #9

HerrCai0907 opened this issue Jun 13, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@HerrCai0907
Copy link

No description provided.

@mike-lischke mike-lischke added the enhancement New feature or request label Jun 13, 2024
@jimidle
Copy link

jimidle commented Jun 25, 2024

I don't think that this is the correct description of the issue @mike-lischke - on *nix systems, the formatter will often produce an output file without the trailing newline required for valid text files. I think that the issue is that regardless of the OS, it should always ensure that the file ends with a newline. I came here to report that as a bug.

@mike-lischke
Copy link
Owner

Makes sense.

@HerrCai0907
Copy link
Author

@jimidle So it is a os-related bug instead of a feature request? Because I don't use windows, I even don't aware it.

@jimidle
Copy link

jimidle commented Jun 26, 2024

@jimidle So it is a os-related bug instead of a feature request? Because I don't use windows, I even don't aware it.

Yes. It is common thing with many utilities. *nix requires a newline at the end of a text file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants