Fix \r and \r\n handling in t- and f-string debug texts (#18673)

This commit is contained in:
Micha Reiser 2025-06-15 07:53:06 +02:00 committed by GitHub
parent 5e02d839d5
commit 8237d4670c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 79 additions and 4 deletions

View file

@ -8,4 +8,8 @@ ij_formatter_enabled = false
[docstring_tab_indentation.py]
generated_code = true
ij_formatter_enabled = false
ij_formatter_enabled = false
[f-string-carriage-return-newline.py]
generated_code = true
ij_formatter_enabled = false

View file

@ -0,0 +1,8 @@
# Regression test for https://github.com/astral-sh/ruff/issues/18667
f"{
1=
}"
t"{
1=
}"