]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Don't trim spaces in diff template
authorvrana <jakubv@fb.com>
Thu, 24 May 2012 18:48:59 +0000 (11:48 -0700)
committervrana <jakubv@fb.com>
Thu, 24 May 2012 18:58:00 +0000 (11:58 -0700)
Summary:
`arc diff` adds a space after each field in template.
It is later removed for the last field.

Test Plan: This diff.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2564

src/workflow/diff/ArcanistDiffWorkflow.php

index c52ed14c5a4a7f91ec7baa81d49a42d2698ca841..523336517f6b3711eecfe8ea3123b965a350e21b 100644 (file)
@@ -1424,7 +1424,7 @@ EOTEXT
     $done = false;
     $first = true;
     while (!$done) {
-      $template = rtrim($template)."\n\n";
+      $template = rtrim($template, "\r\n")."\n\n";
       foreach ($issues as $issue) {
         $template .= '# '.$issue."\n";
       }