'Requires:
line -- line of text
Returns:
nothing
Logic:
Slice from the end the groups in waiting.
Iterate through the list. If the dictionary contaings info, write
a closing tag.'

def __end_para_func(self, line):

    if (not self.__in_para):
        return
    if (self.__groups_in_waiting[0] == 0):
        inline_list = self.__inline_list
    else:
        last_index = ((-1) * self.__groups_in_waiting[0])
        inline_list = self.__inline_list[0:last_index]
    for the_dict in inline_list:
        contains_info = the_dict.get('contains_inline')
        if contains_info:
            the_keys = the_dict.keys()
            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.__write_obj.write('mi<tg<close_____<inline\n')
    self.__in_para = 0
