Skip to content
This repository
Browse code

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
  • Loading branch information...
commit d14f0cece42db804a83b8a1685f735ac86e68680 1 parent fb86859
Christian Winther authored May 28, 2013

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  lib/Cake/basics.php
5  lib/Cake/basics.php
@@ -95,6 +95,7 @@ function debug($var, $showHtml = null, $showFrom = true) {
95 95
 ########## DEBUG ##########
96 96
 %s
97 97
 ###########################
  98
+
98 99
 TEXT;
99 100
 			$template = $html;
100 101
 			if (php_sapi_name() === 'cli' || $showHtml === false) {
@@ -231,8 +232,8 @@ function pluginSplit($name, $dotAppend = false, $plugin = null) {
231 232
 
232 233
 /**
233 234
  * print_r() convenience function
234  
- * 
235  
- * In terminals this will act the same as using print_r() directly, when not run on cli 
  235
+ *
  236
+ * In terminals this will act the same as using print_r() directly, when not run on cli
236 237
  * print_r() will wrap <PRE> tags around the output of given array. Similar to debug().
237 238
  *
238 239
  * @see	debug()

0 notes on commit d14f0ce

Please sign in to comment.
Something went wrong with that request. Please try again.