[FrameworkBundle] tweaked reference dumper command (see #7093)

This commit is contained in:
Gábor Egyed 2013-02-17 13:49:11 +01:00
parent 7d143aac42
commit 18b139d41c

View File

@ -236,10 +236,12 @@ EOF
$default = (string) $default != '' ? ' '.$default : '';
$comments = count($comments) ? '# '.implode(', ', $comments) : '';
$text = sprintf('%-20s %s %s', $node->getName().':', $default, $comments);
$text = rtrim(sprintf('%-20s %s %s', $node->getName() . ':', $default, $comments), ' ');
if ($info = $node->getInfo()) {
$this->outputLine('');
// indenting multi-line info
$info = str_replace("\n", sprintf("\n%" . $depth * 4 . "s# ", ' '), $info);
$this->outputLine('# '.$info, $depth * 4);
}