From fae01af853842a405b52010ea7a2f41fe4243e8c Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Thu, 19 Aug 2010 00:24:25 +0200 Subject: Deal with spaces at the end of the line. --- ftplugin/rst_tables.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftplugin') diff --git a/ftplugin/rst_tables.vim b/ftplugin/rst_tables.vim index d786f7c..0722816 100644 --- a/ftplugin/rst_tables.vim +++ b/ftplugin/rst_tables.vim @@ -52,7 +52,7 @@ def unify_table(table): def parse_table(raw_lines): - mkfields = lambda line: re.split('\s\s+', line) + mkfields = lambda line: re.split('\s\s+', line.rstrip()) output = map(mkfields, raw_lines) output = unify_table(output) return output -- cgit v1.2.3