Subject: [htdig3-dev] Multiple Excerpt Patch
From: Jim Cole (email@example.com)
Date: Sat Mar 04 2000 - 14:35:16 PST
Hi - Quite a while back I offered to work on a patch that would support
multiple excerpts, which was a feature requested by a couple users. Alas,
after much procrastinating, I have a first cut at it ;)
For lack of a better idea, I used max_excerpts as the name for the
configuration attribute. If this attribute is not set, or set to one,
my additions aren't even touched, except for the attribute code itself
and a conditional. So in "theory", it *can't* break anthing using a
current configuration file, regardless of anything stupid I might have
The code could probably be smarter about handling cases where terms
occur multiple times within the excerpt_length. But I was concerned
about burning too much time hunting for the additional occurances.
I think it would also sort of violate the excerpt_length attribute.
There is a running copy of the patched code at
http://www.tngenweb.org/ss/tngenwebss.html which is configured for a
maximum of three excerpts.
This is my first attempt to even touch the HtDig code, so be gentle ;)
Please let me know if you see any problems or have any suggestions.
To unsubscribe from the htdig3-dev mailing list, send a message to
You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Sat Mar 04 2000 - 14:34:38 PST