svn+ssh://bugman@.../svn/relax/trunk
........
r18709 | bugman | 2013-03-08 16:09:49 +0100 (Fri, 08 Mar 2013) | 3 lines
Added column number checks for the data input into lib.text.table.format_table().
........
r18710 | bugman | 2013-03-08 17:28:30 +0100 (Fri, 08 Mar 2013) | 6 lines
Created the test_format_table6() unit test for lib.text.table.format_table().
This test shows a problem with more than one multi-column cells defined, as well as problems when a
multi-column cell is wider than the sum of the widths of the columns it spans.
........
r18711 | bugman | 2013-03-08 17:30:20 +0100 (Fri, 08 Mar 2013) | 6 lines
Fix for lib.text.table.format_table() when more than one multi-column cell per row is encountered.
The algorithm for determining the total width of the multi-column cell in _table_line() was not
checking if the end of the span was being reached.
........
r18712 | bugman | 2013-03-08 18:15:27 +0100 (Fri, 08 Mar 2013) | 5 lines
Fix for the test_format_table6() unit test of lib.text.table.format_table().
The numbers of the last column were not properly right justified.
........
r18713 | bugman | 2013-03-08 18:17:45 +0100 (Fri, 08 Mar 2013) | 7 lines
The lib.text.table.format_table() function now handles overfull multi-column cells.
The _determine_widths() private function has been created to better handle the determination of the
table column widths. It will now extend the width of the last column to allow overfull multi-column
cells to fit.
........