diff options
author | Vincent Driessen <vincent@datafox.nl> | 2010-08-19 00:24:25 +0200 |
---|---|---|
committer | Vincent Driessen <vincent@datafox.nl> | 2010-08-19 00:24:25 +0200 |
commit | fae01af853842a405b52010ea7a2f41fe4243e8c (patch) | |
tree | f57ac48a580b35848527f8bbf0c7698c7a7803d4 /src | |
parent | 97aac6aa3f960464a783d194266d994515f4ffe9 (diff) | |
download | vim-rst-tables-fae01af853842a405b52010ea7a2f41fe4243e8c.tar.gz vim-rst-tables-fae01af853842a405b52010ea7a2f41fe4243e8c.tar.bz2 vim-rst-tables-fae01af853842a405b52010ea7a2f41fe4243e8c.zip |
Deal with spaces at the end of the line.
Diffstat (limited to 'src')
-rw-r--r-- | src/rst_tables.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rst_tables.py b/src/rst_tables.py index 3368a6f..e1e3842 100644 --- a/src/rst_tables.py +++ b/src/rst_tables.py @@ -37,7 +37,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 |