'Requires:
line -- line to parse
Returns:
Logic:
Write the end marker for the table.
Write the end tag for the table.
Set the state to [\'not_in_table\']'

def __close_table(self, line):

    self.__write_obj.write('mi<mk<table-end_\n')
    self.__state = ['not_in_table']
    self.__table_data[(-1)]['number-of-columns'] = self.__max_number_cells_in_row
    self.__table_data[(-1)]['number-of-rows'] = self.__rows_in_table
    average_cells_in_row = self.__mode(self.__list_of_cells_in_row)
    self.__table_data[(-1)]['average-cells-per-row'] = average_cells_in_row
    average_cell_width = self.__mode(self.__cell_widths)
    self.__table_data[(-1)]['average-cell-width'] = average_cell_width
