Before the line break:
a = "1'2'3'4" #It can be ignored.
s = f"a = {a.split("'")}"
if True:|
Expected:
a = "1'2'3'4"
s = f"a = {a.split("'")}"
if True:
|
Actual:
a = "1'2'3'4"
s = f"a = {a.split("'")}"
if True:
|
If you comment out this line, or switch the double quotes to single quotes and use escape characters, the issue does not occur:
a = "1'2'3'4"
#s = f"a = {a.split("'")}"
s = f"a = {a.split('\'')}"
if True:
|
Minimal reproduction:
Before the line break:
Expected:
Actual:
If you comment out this line, or switch the double quotes to single quotes and use escape characters, the issue does not occur:
Minimal reproduction: