Skip to content

Commit edac93e

Browse files
committed
20250728_01 patch
- VSCode madness again
1 parent d807aae commit edac93e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/cleanup-text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ def main():
169169
# Only add newline if there isn't one already
170170
if not cleaned.endswith('\n'):
171171
cleaned += '\n'
172-
# Add extra newline if running in VS Code extension host
173-
if vscode_extension:
174-
cleaned += '\n'
172+
# Add extra newline if running in VS Code extension host (only when we added the first one)
173+
if vscode_extension:
174+
cleaned += '\n'
175175
# If --no-newline is specified, leave the file exactly as is (no changes to newlines)
176176

177177
sys.stdout.write(cleaned)

0 commit comments

Comments
 (0)