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 6419930 commit 971599dCopy full SHA for 971599d
python_files/normalizeSelection.py
@@ -120,10 +120,10 @@ def normalize_lines(selection):
120
121
# Insert a newline between each top-level statement, and append a newline to the selection.
122
source = "\n".join(statements) + "\n"
123
- # If selection ends with trailing dictionary or list, remove last new-line for "cleaner run".
+ # If selection ends with trailing dictionary or list, remove last unnecessary newline.
124
if selection[-2] == "}" or selection[-2] == "]":
125
source = source[:-1]
126
- # If the selection contains trailing return dictionary, insert newline to run automatically.
+ # If the selection contains trailing return dictionary, insert newline to trigger execute.
127
if check_end_with_return_dict(selection):
128
source = source + "\n"
129
except Exception:
0 commit comments