gitweb: whitespace cleanup
Do not use tabs to align variable initialization (actually use tabs only at the beginning of line, for code indent). Remove trailing whitespace. Make whitespace usage more consistent. Signed-off-by: Jakub Narebski <jnareb.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Jakub Narebski committed
Jun 21, 2006 at 09:48 UTC
7a9b4c5fe3b8d291063c398ecb655281a60b2be7
2 files changed
+21
-21
gitweb/gitweb.cgi
+19
-19
@@ -17,33 +17,33 @@ use Fcntl ':mode';
17
binmode STDOUT, ':utf8';
18
19
my $cgi = new CGI;
20
-my $version = "267";
21
-my $my_url = $cgi->url();
22
-my $my_uri = $cgi->url(-absolute => 1);
23
-my $rss_link = "";
20
+my $version = "267";
21
+my $my_url = $cgi->url();
22
+my $my_uri = $cgi->url(-absolute => 1);
23
+my $rss_link = "";
24
25
# absolute fs-path which will be prepended to the project path
26
-#my $projectroot = "/pub/scm";
27
-my $projectroot = "/home/kay/public_html/pub/scm";
26
+#my $projectroot = "/pub/scm";
27
+my $projectroot = "/home/kay/public_html/pub/scm";
28
29
# location of the git-core binaries
30
-my $gitbin = "/usr/bin";
30
+my $gitbin = "/usr/bin";
31
32
# location for temporary files needed for diffs
33
-my $git_temp = "/tmp/gitweb";
33
+my $git_temp = "/tmp/gitweb";
34
35
# target of the home link on top of all pages
36
-my $home_link = $my_uri;
36
+my $home_link = $my_uri;
37
38
# html text to include at home page
39
-my $home_text = "indextext.html";
39
+my $home_text = "indextext.html";
40
41
# URI of default stylesheet
42
-my $stylesheet = "gitweb.css";
42
+my $stylesheet = "gitweb.css";
43
44
# source of projects list
45
-#my $projects_list = $projectroot;
46
-my $projects_list = "index/index.aux";
45
+#my $projects_list = $projectroot;
46
+my $projects_list = "index/index.aux";
47
48
# default blob_plain mimetype and default charset for text/plain blob
49
my $default_blob_plain_mimetype = 'text/plain';
@@ -51,7 +51,7 @@ my $default_text_plain_charset = undef;
51
52
# file to use for guessing MIME types before trying /etc/mime.types
53
# (relative to the current git repository)
54
-my $mimetypes_file = undef;
54
+my $mimetypes_file = undef;
55
56
57
# input validation and dispatch
@@ -349,7 +349,7 @@ sub git_footer_html {
349
350
sub die_error {
351
my $status = shift || "403 Forbidden";
352
- my $error = shift || "Malformed query, file missing or permission denied";
352
+ my $error = shift || "Malformed query, file missing or permission denied";
353
354
git_header_html($status);
355
print "<div class=\"page_body\">\n" .
@@ -1066,7 +1066,7 @@ sub git_summary {
1066
"<td>";
1067
if (length($co{'title_short'}) < length($co{'title'})) {
1068
print $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$commit"), -class => "list", -title => "$co{'title'}"},
1069
- "<b>" . esc_html($co{'title_short'}) . "$ref</b>");
1069
+ "<b>" . esc_html($co{'title_short'}) . "$ref</b>");
1070
} else {
1071
print $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$commit"), -class => "list"},
1072
"<b>" . esc_html($co{'title'}) . "$ref</b>");
@@ -1124,7 +1124,7 @@ sub git_summary {
1124
print $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$tag{'reftype'};h=$tag{'refid'}")}, $tag{'reftype'});
1125
if ($tag{'reftype'} eq "commit") {
1126
print " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=shortlog;h=$tag{'name'}")}, "shortlog") .
1127
- " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=log;h=$tag{'refid'}")}, "log");
1127
+ " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=log;h=$tag{'refid'}")}, "log");
1128
}
1129
print "</td>\n" .
1130
"</tr>";
@@ -1362,7 +1362,7 @@ sub git_tags {
1362
print $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$tag{'reftype'};h=$tag{'refid'}")}, $tag{'reftype'});
1363
if ($tag{'reftype'} eq "commit") {
1364
print " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=shortlog;h=$tag{'name'}")}, "shortlog") .
1365
- " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=log;h=$tag{'refid'}")}, "log");
1365
+ " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=log;h=$tag{'refid'}")}, "log");
1366
}
1367
print "</td>\n" .
1368
"</tr>";
@@ -1942,7 +1942,7 @@ sub git_commit {
1942
"</td>" .
1943
"</tr>\n";
1944
}
1945
- print "</table>".
1945
+ print "</table>".
1946
"</div>\n";
1947
print "<div class=\"page_body\">\n";
1948
my $comment = $co{'comment'};
gitweb/gitweb.css
+2
-2
@@ -1,7 +1,7 @@
1
body {
2
font-family: sans-serif;
3
font-size: 12px;
4
- border:solid #d9d8d1;
4
+ border: solid #d9d8d1;
5
border-width: 1px;
6
margin: 10px;
7
background-color: #ffffff;
@@ -33,7 +33,7 @@ div.page_header a:hover {
33
}
34
35
div.page_nav {
36
- padding:8px;
36
+ padding: 8px;
37
}
38
39
div.page_nav a:visited {