From d7192e4c0ac64eeae9be2389ae4036048a0543c6 Mon Sep 17 00:00:00 2001 From: mechatroner Date: Tue, 15 Sep 2020 20:38:58 -0400 Subject: [PATCH] #28 - Fix: do not align the last column with trailing spaces --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4538f6d..2e25da8 100644 --- a/main.py +++ b/main.py @@ -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()