Get the number of columns in the table.
(self)
| 109 | self.add_column(f'<TD BORDER="{border}" {r}>...</TD>') |
| 110 | self.col_count += 1 |
| 111 | |
| 112 | def html_table_frame(self, border, color, line_color='black', spacing=5): |
| 113 | """ Helper function to add the HTML table frame to the string s setting the 'border' and 'color'. """ |
| 114 | s = f'<\n<TABLE BORDER="{border}" CELLBORDER="1" CELLSPACING="{spacing}" CELLPADDING="0" BGCOLOR="{color}" COLOR="{line_color}" PORT="table">\n' |
| 115 | s += ''.join('<TR>' + ''.join(cell for cell in (reversed(row) if self.columns_reversed else row)) + '</TR>\n' |
| 116 | for row in (reversed(self.rows) if self.rows_reversed else self.rows)) |
nothing calls this directly
no outgoing calls
no test coverage detected