Source code for pyexlatex.table.models.spacing.rowtable



from pyexlatex.table.models.spacing.cell import CellSpacer
from pyexlatex.table.models.data.row import DataRow
from pyexlatex.table.models.data.valuestable import ValuesTable

[docs]class RowPadTable(ValuesTable):
[docs] def __init__(self, num_cols: int = 1): row = DataRow([CellSpacer(num_cols)]) super().__init__([row])
@property def num_columns(self): return len(self.rows) def __repr__(self): return f'<RowPadTable({self.num_columns})>'