{"thread":{"id":"5196","subject":"[PATCH] gitweb: Whitespace cleanup - tabs are for indent, spaces are for align","startedAt":"2006-08-10T10:38:47Z","lastAt":"2006-08-10T10:38:47Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"25084","messageId":"200608101238.47391.jnareb@gmail.com","threadId":"5196","inReplyTo":null,"subject":"[PATCH] gitweb: Whitespace cleanup - tabs are for indent, spaces are for align","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-08-10T10:38:47Z","receivedAt":"2006-08-10T10:38:47Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Signed-off-by: Jakub Narebski <jnareb@gmail.com>\n---\nErrorneous code (using tabs for align) was generated with tab width 2;\nerror was noticed when browsing code with tab width 5.\n\n gitweb/gitweb.perl |   14 +++++++-------\n 1 files changed, 7 insertions(+), 7 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 855e05c..191ed79 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -1003,7 +1003,7 @@ sub git_get_paging_nav {\n \tif ($page > 0) {\n \t\t$paging_nav .= \" &sdot; \" .\n \t\t\t$cgi->a({-href => \"$my_uri?\" . esc_param(\"p=$project;a=$action;h=$hash;pg=\" . ($page-1)),\n-\t\t\t\t\t\t\t -accesskey => \"p\", -title => \"Alt-p\"}, \"prev\");\n+\t\t\t         -accesskey => \"p\", -title => \"Alt-p\"}, \"prev\");\n \t} else {\n \t\t$paging_nav .= \" &sdot; prev\";\n \t}\n@@ -1011,7 +1011,7 @@ sub git_get_paging_nav {\n \tif ($nrevs >= (100 * ($page+1)-1)) {\n \t\t$paging_nav .= \" &sdot; \" .\n \t\t\t$cgi->a({-href => \"$my_uri?\" . esc_param(\"p=$project;a=$action;h=$hash;pg=\" . ($page+1)),\n-\t\t\t\t\t\t\t -accesskey => \"n\", -title => \"Alt-n\"}, \"next\");\n+\t\t\t         -accesskey => \"n\", -title => \"Alt-n\"}, \"next\");\n \t} else {\n \t\t$paging_nav .= \" &sdot; next\";\n \t}\n@@ -1844,9 +1844,9 @@ sub git_log {\n \t\tnext if !%co;\n \t\tmy %ad = date_str($co{'author_epoch'});\n \t\tgit_header_div('commit',\n-\t\t\t\t\t\t\t\t\t \"<span class=\\\"age\\\">$co{'age_string'}</span>\" .\n-\t\t\t\t\t\t\t\t\t esc_html($co{'title'}) . $ref,\n-\t\t\t\t\t\t\t\t\t $commit);\n+\t\t               \"<span class=\\\"age\\\">$co{'age_string'}</span>\" .\n+\t\t               esc_html($co{'title'}) . $ref,\n+\t\t               $commit);\n \t\tprint \"<div class=\\\"title_text\\\">\\n\" .\n \t\t      \"<div class=\\\"log_link\\\">\\n\" .\n \t\t      $cgi->a({-href => \"$my_uri?\" . esc_param(\"p=$project;a=commit;h=$commit\")}, \"commit\") .\n@@ -1911,8 +1911,8 @@ sub git_commit {\n \t}\n \tgit_header_html(undef, $expires);\n \tgit_page_nav('commit', defined $co{'parent'} ? '' : 'commitdiff',\n-\t\t\t\t\t\t\t $hash, $co{'tree'}, $hash,\n-\t\t\t\t\t\t\t $formats_nav);\n+\t             $hash, $co{'tree'}, $hash,\n+\t             $formats_nav);\n \n \tif (defined $co{'parent'}) {\n \t\tgit_header_div('commitdiff', esc_html($co{'title'}) . $ref, $hash);\n-- \n1.4.1.1\n"}]}