Fix \r and \r\n handling in t- and f-string debug texts (#18673)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Regression test for https://github.com/astral-sh/ruff/issues/18667
|
||||
f"{
|
||||
1=
|
||||
}"
|
||||
|
||||
t"{
|
||||
1=
|
||||
}"
|
||||
Reference in New Issue
Block a user