Re: [htdig] converting WORDS spaces to pluses

Gilles Detillieux (
Mon, 5 Jul 1999 11:59:57 -0500 (CDT)

According to Charlie Romero:
> I've got a hard coded link in a results template that uses $(WORDS) to do
> other kinds of searches in other databases.
> This is a sample hard coded link in a default long template:
> "../othersearch/search.tpl?q=$(WORDS)"
> The above example works fine if the search term is a single word. If the
> search query is a string of words, where (words) are "shoe boat hat"
> htseach accurately replaces the spaces w/ plus signs in the URL but in my
> example above I only get spaces when the variable is expanded w/in the
> header of the results template.
> So the results page source looks like:
> "../othersearch/search.tpl?q=shoe boat hat"
> How do I convert the spaces to plus signs in this example?

Right now, I don't think there's a way. This is on the to-do list for 3.2.

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 Jul 05 1999 - 09:21:24 PDT