1
0
Fork 0

Get rid of trailing newline when running scripts

master
LEdoian 5 years ago
parent 1be305efcd
commit 4c7a88bf00

@ -152,6 +152,7 @@ def user_action(hunk: Sequence[Command], context=None) -> Sequence[Command]:
for line in tmpfile.file.readlines():
if line == '':
continue
line = line.rstrip('\n')
parts = line.split('\t', maxsplit=2)
# Change user to None if it is not specified
parts[0] = parts[0].strip() if parts[0].strip() != '' else None

Loading…
Cancel
Save