mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
Fix \r
and \r\n
handling in t- and f-string debug texts (#18673)
This commit is contained in:
parent
5e02d839d5
commit
8237d4670c
6 changed files with 79 additions and 4 deletions
|
@ -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=
|
||||
}"
|
Loading…
Add table
Add a link
Reference in a new issue