fix for highlighting in gsa search

pull/1/head
Michael Peter Christen 13 years ago
parent 9eaede50e7
commit ea11a1efea

@ -312,6 +312,6 @@ public class GSAResponseWriter implements QueryResponseWriter {
if (p < 0) continue; if (p < 0) continue;
text = text.substring(0, p) + "<b>" + text.substring(p, p + s.length()) + "</b>" + text.substring(p + s.length()); text = text.substring(0, p) + "<b>" + text.substring(p, p + s.length()) + "</b>" + text.substring(p + s.length());
} }
return text; return text.replaceAll(Pattern.quote("</b> <b>"), " ");
} }
} }
Loading…
Cancel
Save