'Requires:
line --line of text
Returns:
Nothing
Logic:
If there are no inline groups, do nothing.
Get the keys of the last dictionary in the inline_groups.
If \'contains_inline\' in the keys, write a close tag.
If the_dict contains font information, write a mk tag.'

def __close_bracket_func(self, line):

    if (len(self.__inline_list) == 0):
        return
    the_dict = self.__inline_list[(-1)]
    the_keys = the_dict.keys()
    if (self.__place == 'in_list'):
        if (('contains_inline' in the_keys) and (the_dict['contains_inline'] == 1) and (self.__groups_in_waiting[0] == 0)):
            self.__write_obj.write('mi<tg<close_____<inline\n')
            if ('font-style' in the_keys):
                self.__write_obj.write('mi<mk<font-end__\n')
            if ('caps' in the_keys):
                self.__write_obj.write('mi<mk<caps-end__\n')
    elif (('contains_inline' in the_keys) and (the_dict['contains_inline'] == 1) and self.__in_para and (self.__groups_in_waiting[0] == 0)):
        self.__write_obj.write('mi<tg<close_____<inline\n')
        if ('font-style' in the_keys):
            self.__write_obj.write('mi<mk<font-end__\n')
        if ('caps' in the_keys):
            self.__write_obj.write('mi<mk<caps-end__\n')
    self.__inline_list.pop()
    if (self.__groups_in_waiting[0] != 0):
        self.__groups_in_waiting[0] -= 1
