From: Jakub Narebski Date: Mon, 27 Feb 2012 01:55:22 +0000 (+0100) Subject: gitweb: Highlight matched part of shortened project description X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/c77ad442fb79805bda442e469e4b03ab7272d4ca201b2ccd025be3f57a20d2e5?ds=inline;hp=c77ad442fb79805bda442e469e4b03ab7272d4ca201b2ccd025be3f57a20d2e5 gitweb: Highlight matched part of shortened project description Previous commit make gitweb use esc_html_match_hl() to mark match in the _whole_ description of a project when searching projects. This commit makes gitweb highlight match in _shortened_ description, based on match in whole description, using esc_html_match_hl_chopped() subroutine. If match is in removed (chopped) part, even partially, then trailing "... " is highlighted. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano ---