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

[PATCH] gitweb: Replace SPC with   also in tag comment

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 24, 2006, 21:25 UTC
Message-ID
<11644035504182-git-send-email-jnareb@gmail.com>

Commit messages had SPC replaced with &nbsp; entity; make it so also in tag message (tag comment).

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
 gitweb/gitweb.perl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 53214b0..f06cd3e 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2924,8 +2924,8 @@ sub git_tag {
 	print "<div class=\"page_body\">";
 	my $comment = $tag{'comment'};
 	foreach my $line (@$comment) {
-		chomp($line);
-		print esc_html($line) . "<br/>\n";
+		chomp $line;
+		print esc_html($line, -nbsp=>1) . "<br/>\n";
 	}
 	print "</div>\n";
 	git_footer_html();
-- 
1.4.4.1
Message 1 of 1 in “gitweb: Replace SPC with &nbsp; also in tag comment”
  1. gitweb: Replace SPC with &nbsp; also in tag commentJakub Narebski, Nov 24, 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.