mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
Fixes add_row on EvTable class, allowing the creation of a table without a header.
This commit is contained in:
parent
5b38f27554
commit
fd7bb29505
1 changed files with 1 additions and 1 deletions
|
|
@ -1092,7 +1092,7 @@ class EvTable(object):
|
|||
|
||||
ypos = kwargs.get("ypos", None)
|
||||
row = [Cell(data, **options) for data in args]
|
||||
htable = len(self.table[0]) # assuming balanced table
|
||||
htable = len(self.table[0]) if len(self.table)>0 else 0 # assuming balanced table
|
||||
excess = len(row) - len(self.table)
|
||||
|
||||
if excess > 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue