1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-29 18:22:41 +01:00

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
This commit is contained in:
vrana 2012-05-24 11:48:59 -07:00
parent 81976ff2ff
commit 812f7f782d

View file

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