Fix excess blank lines in Evtable options. Resolve #3027.

This commit is contained in:
Griatch 2023-02-25 18:41:11 +01:00
parent f6cc41dcbd
commit 555d03d931
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,9 @@
# Changelog
## Main
- Bug fix: Evtable options showed spurious empty lines if set without desc
## Evennia 1.2.0
- Bug fix: `TagHandler.get` did not consistently cast to string (aMiss-aWry)

View file

@ -118,7 +118,6 @@ from copy import copy, deepcopy
from textwrap import TextWrapper
from django.conf import settings
from evennia.utils.ansi import ANSIString
from evennia.utils.utils import display_len as d_len
from evennia.utils.utils import is_iter, justify
@ -1543,7 +1542,6 @@ class EvTable:
# we need to add new rows to new column
empty_rows = ["" for _ in range(abs(excess))]
column.add_rows(*empty_rows, **options)
self.nrows -= excess
if xpos is None or xpos > wtable - 1:
# add to the end