From 5693559919ba5f768f4311ba7c5def3071e96d45 Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 2 May 2007 18:41:55 +0000 Subject: [PATCH] Adding newlines to ConsoleScript::hr() git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4990 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/scripts/console_script.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cake/scripts/console_script.php b/cake/scripts/console_script.php index c4d453d2a..6a049ff4d 100644 --- a/cake/scripts/console_script.php +++ b/cake/scripts/console_script.php @@ -157,8 +157,14 @@ class ConsoleScript extends Object { * Outputs a series of minus characters to the standard output, acts as a visual separator. * */ - function hr() { + function hr($newline = false) { + if ($newline) { + $this->out("\n"); + } $this->out('---------------------------------------------------------------'); + if ($newline) { + $this->out("\n"); + } } /** * Creates a file at given path.