From: Luben Tuikov Date: Thu, 05 Oct 2006 01:02:15 GMT Subject: [PATCH 2/2] gitweb: blame: All rows have title; print 8 SP when no leading commit-8 Message-ID: <20061005010215.63402.qmail@web31811.mail.mud.yahoo.com> Print eight spaces when no leading commit is being printed. I.e. on all rows of a commit-block, but the first. This fixes alignment in the destination buffer when blame data lines are cut and pasted. Also, now all rows have title. Signed-off-by: Luben Tuikov --- gitweb/gitweb.perl | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 451bf5d..2949fa4 100644 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2510,15 +2510,12 @@ HTML $print_c8 = 1; } print ""; - print ""; - if ($print_c8 == 1) { - print $cgi->a({-href => href(action=>"commit", hash=>$full_rev, file_name=>$file_name)}, - esc_html($rev)); + print ""; + if ($print_c8 == 0) { + $rev = " "; } + print $cgi->a({-href => href(action=>"commit", hash=>$full_rev, file_name=>$file_name)}, + esc_html($rev)); print ""; print "" . esc_html($lineno) . ""; -- 1.4.2.3.g7d77