Skip to content

Commit f0b4367

Browse files
committed
Extra newline in string literal roundtrip.
1 parent 41586ee commit f0b4367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/selfie-lib/selfie_lib/Literals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def protect_trailing_whitespace(line: str) -> str:
160160
for line in lines
161161
)
162162

163-
return f"{TRIPLE_QUOTE}\n{protect_whitespace}{TRIPLE_QUOTE}"
163+
return f"{TRIPLE_QUOTE}{protect_whitespace}{TRIPLE_QUOTE}"
164164

165165
_char_literal_pattern = re.compile(r"""\{'(\\?.)'\}""")
166166

0 commit comments

Comments
 (0)