Skip to content

Commit

Permalink
#28 - Fix: do not align the last column with trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mechatroner committed Sep 16, 2020
1 parent a132e04 commit d7192e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def run(self, edit):
for lr in line_regions:
line = self.view.substr(lr)
fields = csv_utils.smart_split(line, delim, policy, True)[0]
for i in range(len(fields)):
for i in range(0, len(fields) - 1):
if i >= len(column_sizes):
break
adjusted = fields[i].strip()
Expand Down

0 comments on commit d7192e4

Please sign in to comment.