'Copy footnotes from bottom of file to a separate, temporary file.'

def __get_foot_foot_func(self, line):

    if (self.__token_info == 'mi<mk<footnt-end'):
        self.__state = 'body'
    else:
        self.__write_to_foot_obj.write(line)
