| Line 206: |
Line 206: |
| | function BaseTable:start_rows() | | function BaseTable:start_rows() |
| | self._rows = {self._table_start} | | self._rows = {self._table_start} |
| − | if not self._args.no_header then | + | if not self._args.no_header and self._header then |
| | table.insert(self._rows, self._header) | | table.insert(self._rows, self._header) |
| | end | | end |
| Line 216: |
Line 216: |
| | if row_values == "header" then | | if row_values == "header" then |
| | table.insert(self._rows, self._row_starter) | | table.insert(self._rows, self._row_starter) |
| − | table.insert(self._rows, self._header) | + | if self._header then |
| | + | table.insert(self._rows, self._header) |
| | + | end |
| | elseif row_values == "empty" then | | elseif row_values == "empty" then |
| | table.insert(self._rows, self._row_starter) | | table.insert(self._rows, self._row_starter) |
| Line 248: |
Line 250: |
| | table.insert(self._rows, self._column_empty_cells[column] or self._empty_cell) | | table.insert(self._rows, self._column_empty_cells[column] or self._empty_cell) |
| | end | | end |
| − | elseif row_values == "header" then | + | elseif row_values == "header" and self._header then |
| | table.insert(self._rows, self._header) | | table.insert(self._rows, self._header) |
| | elseif type(row_values) == "table" then | | elseif type(row_values) == "table" then |
| Line 280: |
Line 282: |
| | }) | | }) |
| | table.insert(self._rows, self._row_starter) | | table.insert(self._rows, self._row_starter) |
| − | table.insert(self._rows, self._header)
| + | if self._header then |
| | + | table.insert(self._rows, self._header) |
| | + | end |
| | elseif self._custom_rows and self._custom_rows[custom_row_key] then | | elseif self._custom_rows and self._custom_rows[custom_row_key] then |
| | if type(self._custom_rows[custom_row_key]) == "table" then | | if type(self._custom_rows[custom_row_key]) == "table" then |
| Line 314: |
Line 318: |
| | if not self._args.no_header_bottom then | | if not self._args.no_header_bottom then |
| | table.insert(self._rows, self._row_starter) | | table.insert(self._rows, self._row_starter) |
| − | table.insert(self._rows, self._header_bottom or self._header) | + | if self._header_bottom or self._header then |
| | + | table.insert(self._rows, self._header_bottom or self._header) |
| | + | end |
| | end | | end |
| | table.insert(self._rows, self._table_end) | | table.insert(self._rows, self._table_end) |