]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix `arc which` output
authorJoshua Spence <josh@joshuaspence.com>
Sun, 17 May 2015 23:40:43 +0000 (09:40 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 17 May 2015 23:40:43 +0000 (09:40 +1000)
Summary: Fixes T8231. This was derped in some recent refactoring.

Test Plan: Ran `arc which` and saw expected output.

Reviewers: avivey, epriestley, #blessed_reviewers

Reviewed By: avivey, epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T8231

Differential Revision: https://secure.phabricator.com/D12890

src/workflow/ArcanistWhichWorkflow.php

index 8bc191e98fc5eac1d43e565404740c25e90a15f9..fdae9c7a6633f3fe6670132a7dacd5dab420df8c 100644 (file)
@@ -160,13 +160,14 @@ EOTEXT
       }
 
       echo phutil_console_wrap(
-        "%s\n\n%s\n\n    $ %s\n\n%s\n\n",
-        $will_be_sent,
-        pht(
-          'You can see the exact changes that will be sent by running '.
-          'this command:'),
-        $command,
-        pht('These commits will be included in the diff:'));
+        phutil_console_format(
+          "%s\n\n%s\n\n    $ %s\n\n%s\n\n",
+          $will_be_sent,
+          pht(
+            'You can see the exact changes that will be sent by running '.
+            'this command:'),
+          $command,
+          pht('These commits will be included in the diff:')));
 
       echo $commits."\n\n\n";
     }