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
Griatch
244c142343
Fixed typo.
2015-03-08 19:30:43 +01:00
Griatch
3454beebc1
Updated evtable docs and the CODING_STYLE docs
2015-03-08 18:50:02 +01:00
Griatch
284a20cfd9
Minor updates
2015-03-08 13:51:53 +01:00
Griatch
caa9dbccaf
Partial solution of #625 - introduced a merged regex to correctly sync the ANSIString table with the clean version produced by ansi_parse. Something is still amiss though, since len(ANSIString({lclook{lttest{le)) != len(ANSIString({lclook{lttest{le).split(n)[0])
2015-03-07 18:17:03 +01:00
Griatch
17400ede6b
Fixed trunkated docstring in evtable. Resolves #686 .
2015-03-05 17:16:26 +01:00
Griatch
ad3f19896c
Changed all src/ and ev references to evennia
2015-01-07 15:36:32 +01:00
Griatch
c7325a5032
Further reworking, naming the library folder 'evennia' instead of lib or src.
2015-01-07 13:36:57 +01:00