Skip to content

Commit d2d434b

Browse files
Adam Tkacgitster
authored andcommitted
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 <[email protected]> Helped-by: Jakub Narebski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 99e63ef commit d2d434b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3468,7 +3468,7 @@ sub run_highlighter {
34683468
close $fd;
34693469
open $fd, quote_command(git_cmd(), "cat-file", "blob", $hash)." | ".
34703470
quote_command($highlight_bin).
3471-
" --xhtml --fragment --syntax $syntax |"
3471+
" --fragment --syntax $syntax |"
34723472
or die_error(500, "Couldn't open file or run syntax highlighter");
34733473
return $fd;
34743474
}

0 commit comments

Comments
 (0)