Rewrap Revived version 1.16.3.
The following Python multi-line string is incorrectly rewrapped.
Before:
TEST = """\
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
"""
After:
TEST = """\ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.
"""
The text beginning "Lorem ipsum" should not be joined onto the first line. The trailing backslash on TEST = """\ starts a multi-line string without a leading line-break character. The rewrapped version causes a SyntaxWarning because backslash-space is not a valid escape sequence.
Rewrap Revived version 1.16.3.
The following Python multi-line string is incorrectly rewrapped.
Before:
After:
The text beginning "Lorem ipsum" should not be joined onto the first line. The trailing backslash on
TEST = """\starts a multi-line string without a leading line-break character. The rewrapped version causes a SyntaxWarning because backslash-space is not a valid escape sequence.