We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d807aae commit edac93eCopy full SHA for edac93e
bin/cleanup-text.py
@@ -169,9 +169,9 @@ def main():
169
# Only add newline if there isn't one already
170
if not cleaned.endswith('\n'):
171
cleaned += '\n'
172
- # Add extra newline if running in VS Code extension host
173
- if vscode_extension:
174
- cleaned += '\n'
+ # Add extra newline if running in VS Code extension host (only when we added the first one)
+ if vscode_extension:
+ cleaned += '\n'
175
# If --no-newline is specified, leave the file exactly as is (no changes to newlines)
176
177
sys.stdout.write(cleaned)
0 commit comments