Skip to content

Commit 971599d

Browse files
committed
detailed comments
1 parent 6419930 commit 971599d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_files/normalizeSelection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ def normalize_lines(selection):
120120

121121
# Insert a newline between each top-level statement, and append a newline to the selection.
122122
source = "\n".join(statements) + "\n"
123-
# If selection ends with trailing dictionary or list, remove last new-line for "cleaner run".
123+
# If selection ends with trailing dictionary or list, remove last unnecessary newline.
124124
if selection[-2] == "}" or selection[-2] == "]":
125125
source = source[:-1]
126-
# If the selection contains trailing return dictionary, insert newline to run automatically.
126+
# If the selection contains trailing return dictionary, insert newline to trigger execute.
127127
if check_end_with_return_dict(selection):
128128
source = source + "\n"
129129
except Exception:

0 commit comments

Comments
 (0)