'Requires:
line --the line to parse
Returns:
nothing
Logic:
This function handles all the lines in the body of the documents.
Look for a bookmark, index or toc entry and take the appropriate action.'

def __body_func(self, line):

    (action, tag) = self.__body_dict.get(self.__token_info, (None, None))
    if action:
        action(line, tag)
    else:
        self.__write_obj.write(line)
