According to Geoff Hutchison:
> On Monday, April 15, 2002, at 09:59  PM, Fletcher, Stephen J wrote:
> > however I can't firgure out the regex for search_rewrite_rules to do 
> > s/%20/
> > /g
> 
> I would assume this (or similar) would work:
> 
> search_rewrite_rules: %20 ' '

Actually, I wouldn't expect this to work.  Both search_rewrite_rules
and url_rewrite_rules are of type "string list", not "quoted string list".
The reason for this is that, according to RFC 2396, white space is not
valid inside of URLs, so we don't need to allow it inside the rewriting
rules either.

This request goes into the category of "how to I configure htsearch to
generate bad code?"  If you want htsearch to generate proper HTML, you
should respect the %20 encodings in URLs.

On the other hand, if you want spaces in the _displayed_ URL, as opposed
to the one embedded in <a href="..."> tags, then that's a whole other
matter which can't be solved with search_rewrite_rules.  For that,
see http://www.geocrawler.com/mail/msg.php3?msg_id=6956628&list=8822
(of course, 3.1.6 is now officially released, not just a snapshot, and
presumably that's what you're using if you expected search_rewrite_rules
to work).

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to