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 <ltuikov@xxxxxxxxx> --- 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 "<tr class=\"$rev_color[$current_color]\">"; - print "<td class=\"sha1\""; - if ($print_c8 == 1) { - print " title=\"$author, $date\""; - } - print ">"; - if ($print_c8 == 1) { - print $cgi->a({-href => href(action=>"commit", hash=>$full_rev, file_name=>$file_name)}, - esc_html($rev)); + print "<td class=\"sha1\" title=\"$author, $date\">"; + if ($print_c8 == 0) { + $rev = " "; } + print $cgi->a({-href => href(action=>"commit", hash=>$full_rev, file_name=>$file_name)}, + esc_html($rev)); print "</td>"; print "<td class=\"linenr\"><a id=\"l$lineno\" href=\"#l$lineno\" class=\"linenr\">" . esc_html($lineno) . "</a></td>"; -- 1.4.2.3.g7d77