fstringify icon indicating copy to clipboard operation
fstringify copied to clipboard

Doesn't work with \n in the string

Open jbagot opened this issue 5 years ago • 1 comments

Hi, first of all it's really cool and I was thinking in do this tool but I found yours, I'll contribute here.

The issue is when there is a \n in the string doesn't work. Also should respect the multiline, because if I have something like:

print(
    "hello %s, "
    "my name is %s" % (world, jordi)
)

It's converted to print(f"hello {world}, my name is {jordi}"), it's correct but it isn't respect the multiline.

jbagot avatar Jan 25 '19 16:01 jbagot