Commit graph

57 commits

Author SHA1 Message Date
Griatch
d4f1733bc7 Update docstrings to pass autodoc parsing 2020-10-11 17:15:30 +02:00
Griatch
d414cc3ccd Start add docs again 2020-10-08 21:45:18 +02:00
Griatch
750922a613 Have EvTable width correctly handle asian alphabets as per #2166. 2020-07-15 23:18:53 +02:00
Griatch
69d85bd184 Make scripts/objects lists use EvMore. Change EvMore to not justify by default. 2020-01-11 15:49:12 +01:00
Griatch
4ea6209123 Ran black on branc 2019-12-16 20:31:42 +01:00
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Greg Taylor
bd33886cc0 Remove uses of the 'future' py2->3 module
This is no longer needed, now that we are Py3.7+ only. One
layer of indirection removed, and one less dependency.
2019-09-15 00:18:56 -07:00
Griatch
7bf4874f7e Make bottom border-char inherit from top-border char. Resolves #1582. 2019-03-31 00:11:17 +01:00
Griatch
fa8c7657da Clean up unicode mentions in docstrings 2019-01-31 23:44:16 +01:00
Griatch
7a535b35fa Remove __unicode__ magic methods no longer needed 2019-01-30 23:50:43 +01:00
Griatch
72f4fedcbe Merge with develop and fix merge conflicts 2018-10-01 20:58:16 +02:00
Griatch
9bbfc422ee Make EvTable respect col-widths while retaining total table width.
Resolves #1614.
2018-04-22 14:50:17 +02:00
Ryan Stein
6f91e1e546 Remove to_unicode. 2017-11-03 12:36:45 -04:00
Ryan Stein
f2e800ddf1 Unwrap several for statements from 2to3 conversion process. 2017-11-02 12:46:33 -04:00
Ryan Stein
8d0d3a942f Partially port EvTable for Py3. 2017-10-29 22:14:22 -04:00
Ryan Stein
6fa280b9fd Run 2to3. 2017-10-29 13:40:30 -04:00
Scyfris Talivinsky
9d10ca4f39 Fix an issue with adding an empty column to an EvTable
There seems to be an issue with adding an empty column (i.e. a column
with empty data) to an EvTable that has already been set up.  It seems
that the column with empty data is added with one extra row than the
rest of the table, and when a new call to add_rows() is made to EvTable,
the data in the column that was added previously is offset by 1.

This change fixes that by calculating the size of the new column to take
into account the headers BEFORE making the calculation on whether to
expand the column to match the table's size or not.
2017-10-15 13:38:53 -07:00
Nicholas Matlaga
7c7ec3736f Fixed EvCell behaviour mentioned in #1410 2017-09-01 00:18:15 +02:00
Griatch
b278337172 Make PEP8 cleanup of line spaces and character distances as well as indents 2017-08-19 23:16:36 +02:00
Griatch
5aba9cf253 Remove accidentally left-in evtable debugs that messed up unittests. 2017-02-28 13:45:12 +01:00
Griatch
c15d5a26c4 Add another errback handler for error in #1207. 2017-02-28 08:08:33 +01:00
BlauFeuer
0dfac7f737 Markup, whitespace, docstring and comments, code 2017-02-20 02:32:01 -05:00
Griatch
74eebfed6d Refactor code to remove alerts as per lgtm and #1176. 2017-01-29 19:02:00 +01:00
Griatch
c6d9c0619e Refactor code for readability and compatibility. 2017-01-27 00:19:27 +01:00
Griatch
f00fbb9d88 Implement ANSIString.strip() .lstrip() and .rstrip() as tag-aware methods. This handles the last prblem with #1117. 2016-11-17 00:21:05 +01:00
Griatch
596bfff35a Do further cleanups in evmenu color handling; relates to #1117. 2016-11-15 01:07:16 +01:00
Griatch
682060daaf Add a lateral shift when stripping a space - the total width of the cell must not change. Relates to 1117. 2016-11-14 23:18:42 +01:00
Tehom
b3d432e0c6 Change to make strip() in EvTable more specific for fixing align 2016-11-03 14:03:22 -04:00
Tehom
242fb0e747 Removed kwarg, now have align check for whether there's only a single whitespace. 2016-10-21 05:12:17 -04:00
Tehom
5f5ffe4324 Added 'justify' kwarg, so base functionality is unchanged 2016-10-20 19:23:49 -04:00
Tehom
c9a9f145c7 Have evtable align arg strip out whitespace along the border that it is aligned with, so that the text is justified. 2016-10-20 19:11:46 -04:00
Griatch
ecf6852d46 Made EvCels auto-close colors rather than bleed over. This is necessary to avoid accidental color clashes in tables that fill the cells to a |-border edge (particularly for EvForm. 2016-05-23 23:56:44 +02:00
Griatch
483263dda1 Made EvTable handle data entries with completely empty cells. Resolves #917. 2016-01-20 19:52:53 +01:00
Ahmed Charles
487fcdf873 Use list* from future.utils.
dict.keys() -> list(dict)
dict.values() -> listvalues(dict)
dict.tems() -> listitems(dict)
2015-11-09 10:23:00 +00:00
Ahmed Charles
b9bdeb3e9c Replace filter with if/comprehension. 2015-11-09 10:11:34 +01:00
Ahmed Charles
1968f15895 Remove commented out code. 2015-11-09 10:11:34 +01:00
Ahmed Charles
bcd8674ef3 Use python3 range.
Including potential memory reduction due to not created unnecessary lists.
2015-11-02 11:47:07 +00:00
Ahmed Charles
11b61fe335 Import python3 compatible object. 2015-11-02 00:19:04 +01:00
Griatch
c7e1a6a086 Resolved merge conflicts against master. 2015-10-20 00:07:39 +02:00
Ahmed Charles
bc340fbf0d Remove commented out print statements. 2015-10-19 23:31:19 +02:00
Ahmed Charles
0384fcc63d Move to python3 style except. 2015-10-19 23:31:19 +02:00
Russell Jones
06c3dc0ed3 Run "futurize -1 -w -n ." 2015-10-01 20:00:28 +01:00
Griatch
f5eeba72e0 Changed evtable to use a custom ljust/rjust routine instead of the ones from the python library. This resolves issues with width calculation of strings containing MXP links. Resolves #705. 2015-05-15 00:33:10 +02:00
Griatch
c781160225 Made various parts of the core respect the CLIENT_DEFAULT_WIDTH setting. Resolves #710. 2015-03-19 19:21:05 +01:00
Griatch
666d2e6d17 Fixed a header update error in evtable. 2015-03-15 17:59:20 +01:00
Griatch
dac5ca99cd Minor tweak to evtable docstring example. 2015-03-15 17:51:53 +01:00
Griatch
b30e766047 Fixed the lingering offset problem with mxp. This should fix the last part of #625. 2015-03-13 20:00:11 +01:00
Griatch
d63db77eb4 Added m_len to evtable, got it mostly to work with mxp, except for a strange offset of one character (so not yet fully functional) 2015-03-12 08:31:26 +01:00
Griatch
bd843ee2c4 Fixed minor regression in evtable. 2015-03-09 08:33:47 +01:00
Griatch
f81b756f78 Updated evtable docs 2015-03-08 22:08:44 +01:00