Remove original indent if present, fixes #3143

main
Jordi Boggiano 10 years ago
parent 8a29c812e3
commit 9c32f24cfc

@ -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);

Loading…
Cancel
Save