From: vrana Date: Thu, 24 May 2012 18:48:59 +0000 (-0700) Subject: Don't trim spaces in diff template X-Git-Tag: conduit-6~304 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=812f7f782d24d686774a0a26af83397deada0aec;p=arcanist.git Don't trim spaces in diff template 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 --- diff --git a/src/workflow/diff/ArcanistDiffWorkflow.php b/src/workflow/diff/ArcanistDiffWorkflow.php index c52ed14c..52333651 100644 --- a/src/workflow/diff/ArcanistDiffWorkflow.php +++ b/src/workflow/diff/ArcanistDiffWorkflow.php @@ -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"; }