Geoff Hutchison wrote:

>On Wed, 27 Feb 2002, Shawn Willden wrote:
>
>>that transparent) but the titles would be *much* more readable if they 
>>would translate %20s to spaces.
>>
>
>Good point, I'd consider this a bug.
>
Okay then, here's a patch (possibly a hack, I don't know enough about 
what else may appear in titles and what other things decodeURL might do 
that are bad, but it seems to work okay for me):

--- htdig-3.1.6.orig/htsearch/Display.cc        Thu Jan 31 16:47:18 2002
+++ htdig-3.1.6/htsearch/Display.cc     Wed Feb 27 10:55:19 2002
@@ -302,6 +302,11 @@
       }
     else
       str = new String(title);
+
+    if (str->indexOf("%20") >= 0)
+      // Title is URL encoded.  Decode it
+      decodeURL(*str);
+
     vars.Add("TITLE", str);
     vars.Add("STARSRIGHT", generateStars(ref, 1));
     vars.Add("STARSLEFT", generateStars(ref, 0));

Shawn.


_______________________________________________
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