def append_fresh_table(self, fresh_table):
if fresh_table.name:<EOL><INDENT>elements = []<EOL>if fresh_table.is_array:<EOL><INDENT>elements += [element_factory.create_array_of_tables_header_element(fresh_table.name)]<EOL><DEDENT>else:<EOL><INDENT>elements += [element_factory.create_table_header_element(fresh_table.name)]<EOL><DEDENT>elements += [fresh_table, element_factory.create_newline_element()]<EOL>self.append_elements(elements)<EOL><DEDENT>else:<EOL><INDENT>self.prepend_elements([fresh_table, element_factory.create_newline_element()])<EOL><DEDENT>
Gets called by FreshTable instances when they get written to.