rasmus          Sun, 19 Jul 2009 22:32:22 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=284393


Changed paths:
        U   SVNROOT/commit-email.php

Log:
Whitespace tweaks


Modified: SVNROOT/commit-email.php
===================================================================
--- SVNROOT/commit-email.php    2009-07-19 22:23:38 UTC (rev 284392)
+++ SVNROOT/commit-email.php    2009-07-19 22:32:22 UTC (rev 284393)
@@ -219,7 +219,7 @@
 $bugs_body = '';
 if ($bugs) {
     include '/home/svn/SVNROOT/secret.inc';
-    $bugs_body = (count($bugs_array[1])>1) ? "Bugs: " : "Bug: ";
+    $bugs_body = (count($bugs_array[1])>1) ? "\r\nBugs: " : "\r\nBug: ";
     foreach ($bugs_array[1] as $k=>$bug_id) {
         $bug_sdesc = '';
         $bug_status = '';
@@ -238,8 +238,8 @@
             if($ret !== false ) {
                 $json = json_decode($ret,true);
                 if(isset($json['result']['status'])) {
-                    $bug_status = '('.$json['result']['status']['status'].')';
-                    $bug_sdesc = $json['result']['status']['sdesc'];
+                    $bug_status = ' ('.$json['result']['status']['status'].')';
+                    $bug_sdesc = ' '.$json['result']['status']['sdesc'];
                 }
             }
             curl_close($ch);
@@ -256,14 +256,13 @@
             "{$commit_user}\t\t" . date(DATE_RFC2822, $commit_date) . "\r\n" .
             "\r\n" .
             "Revision: 
http://svn.php.net/viewvc?view=revision&revision={$REV}\r\n"; .
-            "\r\n". $bugs_body .
             "\r\n" .
             "Changed paths:\r\n" .
             "\t" . implode("\r\n\t", $changed_paths) . "\r\n" .
             "\r\n" .
             "Log:\r\n" .
             $commit_log . "\r\n" .
-            "\r\n" .
+            "$bugs_body\r\n" .
             $diffs_string;

 if ($diffs_string === NULL) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to