'Requires:
line --the line to parse
Returns:
nothing
Logic:
This function handles all lines within a bookmark. It adds each
line to a string until the end of the bookmark is found. It
processes the string with the fields_string module, and
prints out the result.'

def __bookmark_func(self, line):

    if (self.__beg_bracket_count == self.__cb_count):
        self.__state = 'body'
        type = ('bookmark-%s' % self.__type_of_bookmark)
        '\n                                                my_string    =    self.__string_obj.process_string(\n                                                                self.__text_string,    type)\n                                                '
        my_string = self.__parse_bookmark_func(self.__text_string, type)
        self.__write_obj.write(self.__marker)
        self.__write_obj.write(my_string)
        self.__text_string = ''
        self.__write_obj.write(line)
    elif (line[0:2] == 'tx'):
        self.__text_string += line[17:(-1)]
