;+ ; NAME: ; www_help_is_text ; PURPOSE: ; Check wheter a line from a header is part of the ; documentation (i.e. does not contain a section header) ; CATEGORY: ; www_help ; CALLING SEQUENCE: FUNCTION www_help_is_text, style, line, section ; INPUTS: ; style array[1]; type: structure ; www_help_style structure ; (passed to www_help_is_section) ; line scalar; type: string ; text string from a documentation header ; section array; type: string ; array with valid section headers ; OUTPUTS: ; B scalar: type: byte ; 0: line is not documentation (contains header) ; 1: line is documentation (does not contain header) ; INCLUDE: @compile_opt.pro ; On error, return to caller ; CALLS: ; www_help_is_section ; PROCEDURE: ; Checks whether 'line' contains a section heading by checking ; 'line' for the presence of one of the elements in array 'section'. ; MODIFICATION HISTORY: ; JUNE-2001, Paul Hick (UCSD/CASS; pphick@ucsd.edu) ;- ; www_help_is_section returns -1 if line does not contain header 'section[i]' ; On is set to zero (and stays zero) as soon as a section header is found. on = 1 FOR i=0,n_elements(section)-1 DO $ on = on AND www_help_is_section(style, section[i], line) EQ -1 RETURN, on & END