Permalink
Browse files

Fix missing line breaks.

Fixes #3028
  • Loading branch information...
markstory committed Jul 11, 2012
1 parent db24755 commit b7415525c8de61ff7261f4a5b45ab128aacb7a66
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Console/Command/Task/ModelTask.php
@@ -414,7 +414,7 @@ public function fieldValidation($fieldName, $metaData, $primaryKey = 'id') {
for ($i = 1, $m = $defaultChoice / 2; $i < $m; $i++) {
$line = sprintf("%2d. %s", $i, $this->_validations[$i]);
$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(__d('cake_console', "%s - Do not do any validation on this field.", $defaultChoice));

0 comments on commit b741552

Please sign in to comment.