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

[PATCH] Fix wrong xhtml option to highlight

From
JSJochen Schmitt <jochen@herr-schmitt.de>
Date
Jan 24, 2011, 19:44 UTC
Message-ID
<1295898298-9794-1-git-send-email-Jochen@herr-schmitt.de>

--- Hallo,

because I'm the maintainer of the highlight package in the Fedora Project I was notified, that highlight doesn't works properly with gitweb in BZ #672293.

So I have create the following simple patch to solve the reported issue.

Best Regards
Jochen Schmitt
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 1025c2f..b662420 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -3468,7 +3468,7 @@ sub run_highlighter {
 	close $fd;
 	open $fd, quote_command(git_cmd(), "cat-file", "blob", $hash)." | ".
 	          quote_command($highlight_bin).
-	          " --xhtml --fragment --syntax $syntax |"
+	          " -xhtml --fragment --syntax $syntax |"
 		or die_error(500, "Couldn't open file or run syntax highlighter");
 	return $fd;
 }
-- 
1.7.3.4
Next: Junio C Hamano
Message 1 of 5 in “Fix wrong xhtml option to highlight”
  1. Fix wrong xhtml option to highlightJochen Schmitt, Jan 24, 2011
  2. Junio C HamanoJan 24, 2011
  3. Drew NorthupJan 27, 2011
  4. Junio C HamanoJan 27, 2011
  5. Jakub NarebskiJan 28, 2011

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.