Fixed debug output style for displaying whitespace

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6016 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-11-17 23:13:52 +00:00
parent 6f38be85f4
commit f9e8e82b5b
3 changed files with 1 additions and 5 deletions

View file

@ -364,7 +364,6 @@ pre.cake-debug {
margin-top: 1em; margin-top: 1em;
overflow: auto; overflow: auto;
position: relative; position: relative;
white-space: normal;
} }
div.cake-stack-trace { div.cake-stack-trace {
background: #fff; background: #fff;

View file

@ -289,9 +289,7 @@ if (!function_exists('clone')) {
print "<strong>".substr(r(ROOT, "", $calledFrom[0]['file']), 1)."</strong> (line <strong>".$calledFrom[0]['line']."</strong>)"; print "<strong>".substr(r(ROOT, "", $calledFrom[0]['file']), 1)."</strong> (line <strong>".$calledFrom[0]['line']."</strong>)";
} }
print "\n<pre class=\"cake-debug\">\n"; print "\n<pre class=\"cake-debug\">\n";
ob_start(); $var = print_r($var, true);
print_r($var);
$var = ob_get_clean();
if ($showHtml) { if ($showHtml) {
$var = str_replace('<', '&lt;', str_replace('>', '&gt;', $var)); $var = str_replace('<', '&lt;', str_replace('>', '&gt;', $var));

View file

@ -364,7 +364,6 @@ pre.cake-debug {
margin-top: 1em; margin-top: 1em;
overflow: auto; overflow: auto;
position: relative; position: relative;
white-space: normal;
} }
div.cake-stack-trace { div.cake-stack-trace {
background: #fff; background: #fff;