'Select what action to take in body:
1-At the end of the file close the braket if a bracket was opened
This happens if there is achange
2-If an open bracket is found the code inside is ignore
(written without modifications)
3-If an accepted control word is found put the line
in a buffer then chage state to after cw
4-Else simply write the line'

def __in_body_func(self, line):

    if ((line == 'cb<nu<clos-brack<0001\n') and self.__open_bracket):
        self.__write_obj.write('cb<nu<clos-brack<0003\n')
        self.__write_obj.write(line)
    elif (self.__token_info == 'ob<nu<open-brack'):
        self.__found_brackets = True
        self.__state = 'in_ignore'
        self.__ignore_count = self.__ob_count
        self.__write_obj.write(line)
    elif (self.__token_info in self.__accept):
        self.__temp_group.append(line)
        self.__state = 'after_control_word'
    else:
        self.__write_obj.write(line)
