<!-- Please make sure that the bug is not already fixed either in newer versions or the current development version. To confirm this, you have three options: 1. Update Black's version if a newer release exists: `pip install -U black` 2. Use the online formatter at <https://black.vercel.app/?version=main>, which will use the latest main branch. 3. Or run _Black_ on your machine: - create a new virtualenv (make sure it's the same Python version); - clone this repository; - run `pip install -e .[d]`; - run `pip install -r test_requirements.txt` - make sure it's sane by running `python -m pytest`; and - run `black` like you did last time. --> **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` <!-- A clear and concise description of what the bug is. --> **Environment** <!-- Please complete the following information: --> - Black's version: <!-- e.g. [main] --> 22.8.0 - OS and Python version: <!-- e.g. [Linux/Python 3.7.4rc1] --> Windows 10 python 3.10.6 **Additional context** <!-- Add any other context about the problem here. --> PR adding support for this https://github.com/psf/black/pull/288