提交 7ca84b50 编写于 作者: J Jakub Narebski 提交者: Junio C Hamano

gitweb: Remove characters entities entirely when shortening string

Signed-off-by: NJakub Narebski <jnareb@gmail.com>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 27fb8c40
......@@ -776,6 +776,7 @@ sub chop_str {
my $tail = $2;
if (length($tail) > 4) {
$tail = " ...";
$body =~ s/&[^;]$//; # remove chopped character entities
}
return "$body$tail";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册