'Handle all tokens that are part of footnote'

def __in_footnote_func(self, line):

    if self.__first_line:
        self.__first_line_func(line)
    if (self.__token_info == 'cw<ci<footnot-mk'):
        num = str(self.__footnote_count)
        self.__write_to_foot_obj.write(line)
        self.__write_to_foot_obj.write(('tx<nu<__________<%s\n' % num))
    if (self.__cb_count == self.__footnote_bracket_count):
        self.__in_footnote = 0
        self.__write_obj.write(line)
        self.__write_to_foot_obj.write('mi<mk<foot___clo\n')
        self.__write_to_foot_obj.write('mi<tg<close_____<footnote\n')
        self.__write_to_foot_obj.write('mi<mk<footnt-clo\n')
    else:
        self.__write_to_foot_obj.write(line)
