'Requires:
line -- line to process
Returns:
nothing
Logic:
Check for the end of the group.
Otherwise, if the token is hexidecimal, create an attribute.
Do so by finding the base-10 value of the number. Then divide
this by 2 and round it. Remove the ".0". Sandwwhich the result to
give you something like level1-show-level.
The show-level attribute means the numbering for this level.'

def __level_number_func(self, line):

    if ((self.__token_info == 'cb<nu<clos-brack') and (self.__cb_count == self.__level_number_ob_count)):
        self.__state = 'level'
        self.__all_lists[(-1)][(-1)][0]['level-numbers'] = self.__level_numbers_string
        self.__level_numbers_string = ''
    elif (self.__token_info == 'tx<hx<__________'):
        self.__level_numbers_string += ('\\&#x0027;%s' % line[18:])
    elif (self.__token_info == 'tx<nu<__________'):
        self.__level_numbers_string += line[17:]
        "\n                                                num    =    line[18:]\n                                                num    =    int(num,    16)\n                                                level    =    str(round((num    -    1)/2,    0))\n                                                level    =    level[:-2]\n                                                level    =    'level%s-show-level'    %    level\n                                                self.__all_lists[-1][-1][0][level]    =    'true'\n                                                "
