From: Gilles D. <gr...@sc...> - 2001-12-18 22:30:46
|
According to no...@so...: > While using the tempalte variable ANCHOR within the > template to display the search results (long.html), I > recognized the following error: > Every time htsearch sets a value into the ANCHOR > variable (when it founds a named anchor before the > first match), all following hits are filled with the > same named anchor. It seams, that htsearch doesn't > reset the anchor variable correctly. OK, I've just about had it with all the problems we've had since moving to SourceForge. It gets to the point where we spend more time fighting with them and their buggy systems than we do working on our software. Now it won't even let me login so I can respond to the bug report above. So, I'm posting my reply here instead. In response to... http://sourceforge.net/tracker/?func=detail&atid=104593&aid=494765&group_id=4593 That's funny, I thought I'd fixed that a long time ago, but it appears I haven't. The fix will be in next Sunday's snapshot of 3.1.6 in http://www.htdig.org/files/snapshots/, but if you want the fix right now, or if you need it for 3.2.0b4, here is the patch. Thanks for the report. --- htsearch/Display.cc.orig Thu Nov 1 10:23:33 2001 +++ htsearch/Display.cc Tue Dec 18 16:14:04 2001 @@ -241,6 +241,7 @@ ref->DocURL(url.get()); // for star_patterns & template_patterns match vars.Add("URL", new String(url.get())); + vars.Remove("ANCHOR"); // get rid of any previous setting int iA = ref->DocAnchor(); String *anchor = 0; -- Gilles R. Detillieux E-mail: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 |