From: Adam Tkac Date: Thu, 27 Jan 2011 12:51:51 +0000 (+0100) Subject: Don't pass "--xhtml" to hightlight in gitweb.perl script. X-Git-Tag: v1.7.4~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d2d434beeb03e4ee648ca7ca2a1ea1ed09077306?ds=inline;hp=--cc Don't pass "--xhtml" to hightlight in gitweb.perl script. The "--xhtml" option is supported only in highlight < 3.0. There is no option to enforce (X)HTML output format compatible with both highlight < 3.0 and highlight >= 3.0. However default output format is HTML so we don't need to explicitly specify it. Signed-off-by: Adam Tkac Helped-by: Jakub Narebski Signed-off-by: Junio C Hamano --- d2d434beeb03e4ee648ca7ca2a1ea1ed09077306 diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 1025c2f716..0779f12d61 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 |" + " --fragment --syntax $syntax |" or die_error(500, "Couldn't open file or run syntax highlighter"); return $fd; }