MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / to_string

Method to_string

memory_graph/html_table.py:103–109  ·  view source on GitHub ↗

Construct the HTML table string with the 'border' and 'color' settings.

(self, border=1, color='white', line_color='black')

Source from the content-addressed store, hash-verified

101 self.col_count += 1
102
103 def to_string(self, border=1, color='white', line_color='black'):
104 """ Construct the HTML table string with the 'border' and 'color' settings. """
105 if self.col_count == 0 and self.row_count == 0:
106 if self.is_empty:
107 self.add_value(utils.unquoted_str(''), border=0)
108 return html_table_frame(self.html, border, color, line_color, spacing=0)
109 return html_table_frame(self.html, border, color, line_color)
110
111 def get_column(self):
112 """ Get the number of columns in the table. """

Callers 2

html_table.pyFile · 0.80
add_to_graphviz_graphFunction · 0.80

Calls 2

add_valueMethod · 0.95
html_table_frameFunction · 0.85

Tested by

no test coverage detected