debug() in CLI should include newline..

If not, two debug() statements after each other is very hard to read, as the #### separater is on the same line
This commit is contained in:
Christian Winther 2013-05-28 11:57:59 +00:00
parent fb86859585
commit d14f0cece4

View file

@ -95,6 +95,7 @@ HTML;
########## DEBUG ########## ########## DEBUG ##########
%s %s
########################### ###########################
TEXT; TEXT;
$template = $html; $template = $html;
if (php_sapi_name() === 'cli' || $showHtml === false) { if (php_sapi_name() === 'cli' || $showHtml === false) {
@ -231,8 +232,8 @@ if (!function_exists('pr')) {
/** /**
* print_r() convenience function * print_r() convenience function
* *
* In terminals this will act the same as using print_r() directly, when not run on cli * In terminals this will act the same as using print_r() directly, when not run on cli
* print_r() will wrap <PRE> tags around the output of given array. Similar to debug(). * print_r() will wrap <PRE> tags around the output of given array. Similar to debug().
* *
* @see debug() * @see debug()