'Same logic as the  font_table_func.'

def __style_sheet_func(self, line):

    if (self.__cb_count == self.__close_group_count):
        self.__state = 'preamble'
        self.__style_sheet_final = (('mi<tg<open______<style-table\n' + 'mi<mk<styles-beg\n') + self.__style_sheet_final)
        self.__style_sheet_final += ('mi<mk<styles-end\n' + 'mi<tg<close_____<style-table\n')
    elif (self.__token_info == 'ob<nu<open-brack'):
        if (int(self.__ob_count) == (int(self.__close_group_count) + 1)):
            self.__style_sheet_final += 'mi<mk<stylei-beg\n'
    elif (self.__token_info == 'cb<nu<clos-brack'):
        if (int(self.__cb_count) == (int(self.__close_group_count) + 1)):
            self.__style_sheet_final += 'mi<mk<stylei-end\n'
    else:
        self.__style_sheet_final += line
