Преглед изворни кода

Remove original indent if present, fixes #3143

Jordi Boggiano пре 10 година
родитељ
комит
9c32f24cfc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Composer/Command/StatusCommand.php

+ 1 - 1
src/Composer/Command/StatusCommand.php

@@ -84,7 +84,7 @@ EOT
         foreach ($errors as $path => $changes) {
             if ($input->getOption('verbose')) {
                 $indentedChanges = implode("\n", array_map(function ($line) {
-                    return '    ' . $line;
+                    return '    ' . ltrim($line);
                 }, explode("\n", $changes)));
                 $output->writeln('<info>'.$path.'</info>:');
                 $output->writeln($indentedChanges);