Closed ruancomelli closed 2 years ago
The simplify-fstring-formatting refactoring is replacing newlines with the \x1f character in multiline strings. For instance,
simplify-fstring-formatting
\x1f
def ooops(): return f""" Sourcery is {f"{'awesome'.upper()}"} """
is refactored as
def ooops(): return f"""\x1f Sourcery is\x1f {'awesome'.upper()}\x1f """
The expected result would be
def ooops(): return f""" Sourcery is {'awesome'.upper()} """
v0.11.5
VS Code 1.67.2
Ubuntu 20.04.4 LTS
Duplicate of https://github.com/sourcery-ai/core/issues/1492
Addressed with release of 0.12.1
Issue description or question
The
simplify-fstring-formatting
refactoring is replacing newlines with the\x1f
character in multiline strings. For instance,is refactored as
The expected result would be
Sourcery Version
v0.11.5
Code editor or IDE name and version
VS Code 1.67.2
OS name and version
Ubuntu 20.04.4 LTS