Skip to content

Commit

Permalink
Fix missing line breaks.
Browse files Browse the repository at this point in the history
Fixes #3028
  • Loading branch information
markstory committed Jul 11, 2012
1 parent db24755 commit b741552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -414,7 +414,7 @@ public function fieldValidation($fieldName, $metaData, $primaryKey = 'id') {
for ($i = 1, $m = $defaultChoice / 2; $i < $m; $i++) { for ($i = 1, $m = $defaultChoice / 2; $i < $m; $i++) {
$line = sprintf("%2d. %s", $i, $this->_validations[$i]); $line = sprintf("%2d. %s", $i, $this->_validations[$i]);
$optionText .= $line . str_repeat(" ", 31 - strlen($line)); $optionText .= $line . str_repeat(" ", 31 - strlen($line));
$optionText .= sprintf("%2d. %s", $m + $i, $this->_validations[$m + $i]); $optionText .= sprintf("%2d. %s\n", $m + $i, $this->_validations[$m + $i]);
} }
$this->out($optionText); $this->out($optionText);
$this->out(__d('cake_console', "%s - Do not do any validation on this field.", $defaultChoice)); $this->out(__d('cake_console', "%s - Do not do any validation on this field.", $defaultChoice));
Expand Down

0 comments on commit b741552

Please sign in to comment.