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. --- tests/test_rst_tables.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/test_rst_tables.py b/tests/test_rst_tables.py index d44c234..b3df5ad 100644 --- a/tests/test_rst_tables.py +++ b/tests/test_rst_tables.py @@ -77,6 +77,11 @@ a line ending. expected = [['x', 'y', ''], ['a', 'b', 'c'], ['only one', '', '']] self.assertEquals(expected, parse_table(input)) + def testParseDealsWithSpacesAtLineEnd(self): + input = ['x y ', 'a b ', 'only one'] + expected = [['x', 'y'], ['a', 'b'], ['only one', '']] + self.assertEquals(expected, parse_table(input)) + def testTableLine(self): self.assertEquals('', table_line([], True)) self.assertEquals('++', table_line([0], True)) -- cgit v1.2.3