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

(🐞) Windows line endings not preserved with blackd #3255

Closed
KotlinIsland opened this issue Sep 5, 2022 · 0 comments · Fixed by #3257
Closed

(🐞) Windows line endings not preserved with blackd #3255

KotlinIsland opened this issue Sep 5, 2022 · 0 comments · Fixed by #3257
Labels
T: bug Something isn't working

Comments

@KotlinIsland
Copy link
Contributor

KotlinIsland commented Sep 5, 2022

Describe the bug

👉 blackd --bind-port 9090 &
👉 curl -s -XPOST "localhost:9090" -d "1`r`n" -o test.py

(NOTE: I am using ` here to demonstrate a Windows moment, feel free to replace the data with -d 1\r\n if you are using a shell like fish or something)

test.py contents are now 1\n instead of the expected 1\r\n

Environment

  • Black's version: 22.8.0
  • OS and Python version: Windows 10 python 3.10.6

Additional context

PR adding support for this #288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant