]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Put project README in div.readme, fix its padding
[Gitweb] / gitweb.perl
index a87959ed9dac2039ab5f95830682d9149014c25a612dfe4cd5b8a90de95d2387..566004a3d85203128c02e633d8013c4b0fec07a16dfd6600447115518b16a78e 100755 (executable)
@@ -3913,8 +3913,10 @@ sub git_summary {
 
        if (-s "$projectroot/$project/README.html") {
                if (open my $fd, "$projectroot/$project/README.html") {
 
        if (-s "$projectroot/$project/README.html") {
                if (open my $fd, "$projectroot/$project/README.html") {
-                       print "<div class=\"title\">readme</div>\n";
+                       print "<div class=\"title\">readme</div>\n" .
+                             "<div class=\"readme\">\n";
                        print $_ while (<$fd>);
                        print $_ while (<$fd>);
+                       print "\n</div>\n"; # class="readme"
                        close $fd;
                }
        }
                        close $fd;
                }
        }
This page took 0.17777 seconds and 4 git commands to generate.