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)
|
ypos = kwargs.get("ypos", None)
|
||||||
row = [Cell(data, **options) for data in args]
|
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)
|
excess = len(row) - len(self.table)
|
||||||
|
|
||||||
if excess > 0:
|
if excess > 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue