@matheusbsbs / matheus-bagliano / commits / d2d434beeb
Fork 0

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 <atkac@redhat.com> Helped-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Adam Tkac committed Jan 27, 2011 at 13:51 UTC d2d434beeb03e4ee648ca7ca2a1ea1ed09077306
1 file changed +1 -1
gitweb/gitweb.perl
+1 -1
@@ -3468,7 +3468,7 @@ sub run_highlighter {
3468 close $fd;
3469 open $fd, quote_command(git_cmd(), "cat-file", "blob", $hash)." | ".
3470 quote_command($highlight_bin).
3471 - " --xhtml --fragment --syntax $syntax |"
3471 + " --fragment --syntax $syntax |"
3472 or die_error(500, "Couldn't open file or run syntax highlighter");
3473 return $fd;
3474 }