Menu

SVN archive Commit Log


Commit Date  
[r18713] by bugman

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.

2013-03-08 17:17:45 Tree
[r18712] by bugman

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.

2013-03-08 17:15:27 Tree
[r18711] by bugman

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.

2013-03-08 16:30:20 Tree
[r18710] by bugman

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.

2013-03-08 16:28:30 Tree
[r18709] by bugman

Added column number checks for the data input into lib.text.table.format_table().

2013-03-08 15:09:49 Tree
[r18708] by bugman

Merged revisions 18706-18707 via svnmerge from
svn+ssh://bugman@.../svn/relax/trunk

........
r18706 | bugman | 2013-03-08 15:46:30 +0100 (Fri, 08 Mar 2013) | 5 lines

Created the test_format_table5() unit test for lib.text.table.format_table().

This test checks what happens if no header is given to format_table(). This currently fails.
........
r18707 | bugman | 2013-03-08 15:47:12 +0100 (Fri, 08 Mar 2013) | 3 lines

The lib.text.table.format_table() function can now create a table without headers.
........

2013-03-08 14:47:48 Tree
[r18707] by bugman

The lib.text.table.format_table() function can now create a table without headers.

2013-03-08 14:47:12 Tree
[r18706] by bugman

Created the test_format_table5() unit test for lib.text.table.format_table().

This test checks what happens if no header is given to format_table(). This currently fails.

2013-03-08 14:46:30 Tree
[r18705] by bugman

Merged revisions 18689-18704 via svnmerge from
svn+ssh://bugman@.../svn/relax/trunk

........
r18689 | bugman | 2013-03-08 10:04:47 +0100 (Fri, 08 Mar 2013) | 5 lines

Created the lib.text.table.MULTI_COL constant for defining cells spanning multiple columns.

This is not used yet.
........
r18690 | bugman | 2013-03-08 10:12:21 +0100 (Fri, 08 Mar 2013) | 3 lines

Modified the Mf.test_mf_auto_analysis GUI test to catch bug #20603 (https://gna.org/bugs/?20603).
........
r18691 | bugman | 2013-03-08 10:17:09 +0100 (Fri, 08 Mar 2013) | 6 lines

Fix for bug 20603 (https://gna.org/bugs/?20603), the relaxation data right click menu failure.

The problem was that there was that the last menu item specified had no contents. This item has
been removed.
........
r18692 | bugman | 2013-03-08 10:20:41 +0100 (Fri, 08 Mar 2013) | 5 lines

Created a unit test for the lib.text.table.format_table() function to test multiple column support.

Support for content spanning multiple cells is yet to be implemented.
........
r18693 | bugman | 2013-03-08 12:05:12 +0100 (Fri, 08 Mar 2013) | 3 lines

Implemented multi-column support in lib.text.table.format_table().
........
r18694 | bugman | 2013-03-08 12:36:39 +0100 (Fri, 08 Mar 2013) | 3 lines

Spacing between heading rows is now functional in lib.text.table.format_table().
........
r18695 | bugman | 2013-03-08 12:48:26 +0100 (Fri, 08 Mar 2013) | 3 lines

Fix for calculating column widths when multi-column cells are present in lib.text.table.format_table().
........
r18696 | bugman | 2013-03-08 14:13:49 +0100 (Fri, 08 Mar 2013) | 3 lines

Slight changes to one of the lib.text.table.format_table() unit tests.
........
r18697 | bugman | 2013-03-08 14:40:16 +0100 (Fri, 08 Mar 2013) | 3 lines

Created a new unit test of lib.text.table.format_table() to check for non-string type data.
........
r18698 | bugman | 2013-03-08 14:43:46 +0100 (Fri, 08 Mar 2013) | 5 lines

The table contents are now all converted to strings in lib.text.table.format_table().

This uses the _convert_to_string() private function.
........
r18699 | bugman | 2013-03-08 14:57:05 +0100 (Fri, 08 Mar 2013) | 5 lines

Converted the test_format_table4() unit test of lib.text.table.format_table() to check justification.

The right justification of cells with numbers will be implemented to match these changes.
........
r18700 | bugman | 2013-03-08 14:57:34 +0100 (Fri, 08 Mar 2013) | 3 lines

Numbers are now right justified in cells in the lib.text.table.format_table() function.
........
r18701 | bugman | 2013-03-08 15:15:27 +0100 (Fri, 08 Mar 2013) | 6 lines

Modified the test_format_table4() unit test of lib.text.table.format_table().

This change is to test the currently unimplemented custom_format argument. This will be used to
allow special formatting in the table. For example using '%.3f' for a float.
........
r18702 | bugman | 2013-03-08 15:16:34 +0100 (Fri, 08 Mar 2013) | 6 lines

Implemented the custom_format argument for lib.text.table.format_table().

This allows cell contents to be formatted as the user asks. It defaults to standard string
conversion is the custom conversion fails.
........
r18703 | bugman | 2013-03-08 15:21:25 +0100 (Fri, 08 Mar 2013) | 3 lines

Rounding error fix for the test_format_table4() unit test of lib.text.table.format_table().
........
r18704 | bugman | 2013-03-08 15:28:19 +0100 (Fri, 08 Mar 2013) | 5 lines

Python 3 fix for the test_format_table4() unit test of lib.text.table.format_table().

The string representation of the builtin list object is different in Python 2 vs. 3.
........

2013-03-08 14:33:31 Tree
[r18704] by bugman

Python 3 fix for the test_format_table4() unit test of lib.text.table.format_table().

The string representation of the builtin list object is different in Python 2 vs. 3.

2013-03-08 14:28:19 Tree
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.