gitweb: Remove characters entities entirely when shortening string
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>maint
parent
27fb8c40c6
commit
7ca84b5062
|
@ -776,6 +776,7 @@ sub chop_str {
|
||||||
my $tail = $2;
|
my $tail = $2;
|
||||||
if (length($tail) > 4) {
|
if (length($tail) > 4) {
|
||||||
$tail = " ...";
|
$tail = " ...";
|
||||||
|
$body =~ s/&[^;]$//; # remove chopped character entities
|
||||||
}
|
}
|
||||||
return "$body$tail";
|
return "$body$tail";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue