git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] gitweb: blame: Print just a single new line char per table row

From
LTLuben Tuikov <ltuikov@yahoo.com>
Date
Oct 5, 2006, 00:59 UTC
Message-ID
<20061005005926.57010.qmail@web31808.mail.mud.yahoo.com>

This makes cut-and-paste from blame legible, else after pasting it is broken into too many lines.

Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
---
 gitweb/gitweb.perl |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index cba0840..451bf5d 100644
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2509,7 +2509,7 @@ HTML
 			$current_color = ++$current_color % $num_colors;
 			$print_c8 = 1;
 		}
-		print "<tr class=\"$rev_color[$current_color]\">\n";
+		print "<tr class=\"$rev_color[$current_color]\">";
 		print "<td class=\"sha1\"";
 		if ($print_c8 == 1) {
 			print " title=\"$author, $date\"";
@@ -2519,10 +2519,10 @@ HTML
 			print $cgi->a({-href => href(action=>"commit", hash=>$full_rev, file_name=>$file_name)},
 				      esc_html($rev));
 		}
-		print "</td>\n";
+		print "</td>";
 		print "<td class=\"linenr\"><a id=\"l$lineno\" href=\"#l$lineno\" class=\"linenr\">" .
-		      esc_html($lineno) . "</a></td>\n";
-		print "<td class=\"pre\">" . esc_html($data) . "</td>\n";
+		      esc_html($lineno) . "</a></td>";
+		print "<td class=\"pre\">" . esc_html($data) . "</td>";
 		print "</tr>\n";
 	}
 	print "</table>\n";
-- 
1.4.2.3.g7d77
Next: Junio C Hamano
Message 1 of 14 in “gitweb: blame: Print just a single new line char per table row”
  1. 1/2 gitweb: blame: Print just a single new line char per table rowLuben Tuikov, Oct 5, 2006
  2. Junio C HamanoOct 5, 2006
  3. Luben TuikovOct 5, 2006
  4. perhaps time to remove git_blame from gitweb, and git-annotate?Junio C Hamano, Oct 5, 2006
  5. Johannes SchindelinOct 6, 2006
  6. Luben TuikovOct 6, 2006
  7. Martin Langhoff (CatalystIT)Oct 7, 2006
  8. Petr BaudisOct 6, 2006
  9. Luben TuikovOct 6, 2006
  10. Petr BaudisOct 6, 2006
  11. Luben TuikovOct 6, 2006
  12. 1/1 Remove git-annotate.perl and create a builtin-alias for git-blameRyan Anderson, Oct 9, 2006
  13. Ryan AndersonOct 9, 2006
  14. Obituary for git-annotateJunio C Hamano, Oct 9, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.