-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
empty lines at end of file trimmed even with fmt: off #496
Comments
Sounds like a bug. Want to take a look at fixing it? |
The problem here appears to happen in |
The function Unfortunately, I've reached the end of my experience/time to look at this today. I hope this has given someone more versed in the project a better starting place for fixing this bug. EDIT: also, because of how test files are read in |
At least our documentation states that |
Operating system: Linux Mint
Python version: 3.6.6
Black version: latest
Does also happen on master: yes
The following file:
gets trimmed to:
IOW, if the file ends with empty lines, they are removed.
The text was updated successfully, but these errors were encountered: