]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Mention optional Perl modules in INSTALL
[Gitweb] / gitweb.perl
index 275c32d0bbb1a67bffed8ca7249711af0ee85c64aad3776a155d73b9177629dd..9a102749f91a91a3cac567a076e5f272e9a29797df4cedeb112db3cd21ec18f5 100755 (executable)
@@ -3466,11 +3466,10 @@ sub run_highlighter {
        my ($fd, $highlight, $syntax) = @_;
        return $fd unless ($highlight && defined $syntax);
 
-       close $fd
-               or die_error(404, "Reading blob failed");
+       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.535657 seconds and 4 git commands to generate.