Skip to main content.
home | support | download

Back to List Archive

Re: incrementing word position on HTML block tags

From: Peter Karman <karman(at)not-real.cray.com>
Date: Mon Feb 09 2004 - 17:08:47 GMT
Bill Moseley waxed lyrical on 2/9/04 10:30 AM:


> So, it may be as easy as replacing that append_buffer() call above with:
> 
>    {
>        flush_buffer( parse_data, 1 );
>        parse_data->word_pos++;
>    }
> 

I added that, recompiled and it works. Thanks!


> Are there cases where a phrase should match across a block level 
> element?
> 

I can't imagine any. If there was, I'd be sorely tempted to say "that's 
just extremely poor HTML markup."


> 
> If nobody can come up with a reason that it should't bumy the we don't 
> need a config option.... ;)
> 

but of course. :)

pek

-- 
Peter Karman - Software Publications Engineer - Cray Inc
phone: 651-605-9009 - mailto:karman@cray.com
Received on Mon Feb 9 09:08:48 2004