Styling previous commit (pretty-render markdown files in blob mode) with 'readme...
[gitweb-sgk] / gitweb.cgi
index a9eba00..f564d9d 100755 (executable)
@@ -7206,7 +7206,9 @@ sub git_blob {
                my $absolute_file_name = "$projectroot/$project";
                $absolute_file_name =~ s/\.git$//;
                $absolute_file_name = $absolute_file_name . $file_name;
                my $absolute_file_name = "$projectroot/$project";
                $absolute_file_name =~ s/\.git$//;
                $absolute_file_name = $absolute_file_name . $file_name;
+               print "<div class=\"readme\">";
                insert_markdown_file($absolute_file_name);
                insert_markdown_file($absolute_file_name);
+               print "</div>";
        } else {
                my $nr;
                while (my $line = <$fd>) {
        } else {
                my $nr;
                while (my $line = <$fd>) {