]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Trim trailing whitespace from diff hints
authorJoshua Spence <josh@joshuaspence.com>
Sun, 12 Apr 2015 21:21:07 +0000 (07:21 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 12 Apr 2015 21:21:07 +0000 (07:21 +1000)
Summary: Although these don't do any harm, they show up in my editor which is configured to highlight trailing whitespace.

Test Plan: Submitted this diff... saw no trailing whitespace.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

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

src/workflow/ArcanistDiffWorkflow.php

index 6c62f6dd27fcfe1de23e8d26942eb03efa79b487..d0a918c781f0632e4b42dd99b7cfb2101d364c54 100644 (file)
@@ -1605,7 +1605,7 @@ EOTEXT
     while (!$done) {
       $template = rtrim($template, "\r\n")."\n\n";
       foreach ($issues as $issue) {
-        $template .= '# '.$issue."\n";
+        $template .= rtrim('# '.$issue)."\n";
       }
       $template .= "\n";