'Required:
line -- the line of current text.
Return:
Nothing
Logic:
You are in a list, but after a paragraph definition. You have to
determine if the last pargraph definition ends a list, continues
the old one, or starts a new one.
Otherwise, look for a paragraph definition. If one is found, determine if
the paragraph definition contains a list-id. If it does, use the method
self.__list_after_par_def to determine the action.
If the paragraph definition does not contain a list-id, use the method
close_lists to close out items and lists for a paragraph that is not
If a bigger block is found (such as a section or a cell), end all lists.
indented.
If no special line is found, add each line to a buffer.'

def __after_pard_func(self, line):

    if ((self.__token_info == 'mi<tg<open-att__') and (line[17:37] == 'paragraph-definition')):
        is_heading = self.__is_a_heading()
        search_obj = re.search(self.__id_regex, line)
        if (search_obj and (not is_heading)):
            search_obj_lv = re.search(self.__lv_regex, line)
            if search_obj_lv:
                self.__level = search_obj_lv.group(1)
            num = search_obj.group(1)
            self.__list_after_par_def_func(line, num)
            self.__write_obj.write(line)
            self.__state = 'in_pard'
        elif is_heading:
            self.__left_indent = (-1000)
            self.__close_lists()
            self.__write_obj.write(self.__list_chunk)
            self.__list_chunk = ''
            self.__state = 'default'
            self.__write_obj.write(line)
        else:
            self.__close_lists()
            self.__write_obj.write(self.__list_chunk)
            self.__list_chunk = ''
            self.__write_obj.write(line)
            if (len(self.__all_lists) == 0):
                self.__state = 'default'
            else:
                self.__state = 'in_pard'
    elif (self.__token_info in self.__end_list):
        self.__left_indent = (-1000)
        self.__close_lists()
        self.__write_obj.write(self.__list_chunk)
        self.__list_chunk = ''
        self.__state = 'default'
        self.__write_obj.write(line)
    else:
        self.__list_chunk += line
