summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25ffbb2)
raw | patch | inline | side by side (parent: 25ffbb2)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 9 Nov 2006 08:57:13 +0000 (00:57 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 9 Nov 2006 08:57:13 +0000 (00:57 -0800) |
The same change as the previous. It is rather sad that commit log
message parser gives list of chomped lines while tag message parser
gives unchomped ones.
Signed-off-by: Junio C Hamano <junkio@cox.net>
message parser gives list of chomped lines while tag message parser
gives unchomped ones.
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index f4d1ef007b56d5a069146f5997d956a4848fec10..1a757cce366ae25546151a92f842828f9d69d753 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
## functions returning short HTML fragments, or transforming HTML fragments
## which don't beling to other sections
-# format line of commit message or tag comment
+# format line of commit message.
sub format_log_line_html {
my $line = shift;
- $line = esc_html($line);
- $line =~ s/ / /g;
+ $line = esc_html($line, -nbsp=>1);
if ($line =~ m/([0-9a-fA-F]{40})/) {
my $hash_text = $1;
if (git_get_type($hash_text) eq "commit") {