]> Lady’s Gitweb - Gitweb/commitdiff
Don't pass "--xhtml" to hightlight in gitweb.perl script.
authorAdam Tkac <redacted>
Thu, 27 Jan 2011 12:51:51 +0000 (13:51 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
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 <redacted>
Helped-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 39d6a8dda400f1f92c99a35db433ad6c5075d456d0ec7e0c6891d26ff549bcfe..9a102749f91a91a3cac567a076e5f272e9a29797df4cedeb112db3cd21ec18f5 100755 (executable)
@@ -3469,7 +3469,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;
 }
This page took 0.338217 seconds and 4 git commands to generate.