Re: [htdig] Can't get excerpts

Gilles Detillieux (
Mon, 17 May 1999 10:53:14 -0500 (CDT)

According to Geoff Hutchison:
> At 9:45 PM -0400 5/16/99, Chad Cunningham wrote:
> >Well, I don't believe it, but I found the problem... On a really desperate
> >hunch, in my results template, I hit return after the last line which was
> >$(EXCERPT). And that got me the excerpts. So...if that is the last line, it
> >doesn't return the results. By adding a blank line after it, it does return
> >them... Glad I stumbled onto that, this was driving me crazy...
> Glad you found that too. Now I guess I need to check the code and see why
> that's happening... :-)

I think the test at the end of Display::expandVariables() needs to be

    if (state == 2 || state == 5)

In the case Chad ran into, the function would have ended in state 2, which
doesn't currently get processed until it sees another character.

Gilles R. Detillieux              E-mail: <>
Spinal Cord Research Centre       WWW:
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930
To unsubscribe from the htdig mailing list, send a message to containing the single word "unsubscribe" in
the SUBJECT of the message.

This archive was generated by hypermail 2.0b3 on Mon May 17 1999 - 09:09:37 PDT