mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Dont trim strings in Debug::message(), they are useful for indentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@86222 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7e7f9f4407
commit
e7add7a943
@ -144,11 +144,11 @@ class Debug {
|
|||||||
$file = basename($caller['file']);
|
$file = basename($caller['file']);
|
||||||
if(Director::is_cli()) {
|
if(Director::is_cli()) {
|
||||||
if($showHeader) echo "Debug (line $caller[line] of $file):\n ";
|
if($showHeader) echo "Debug (line $caller[line] of $file):\n ";
|
||||||
echo trim($message) . "\n";
|
echo $message . "\n";
|
||||||
} else {
|
} else {
|
||||||
echo "<p style=\"background-color: white; color: black; width: 95%; margin: 0.5em; padding: 0.3em; border: 1px #CCC solid\">\n";
|
echo "<p style=\"background-color: white; color: black; width: 95%; margin: 0.5em; padding: 0.3em; border: 1px #CCC solid\">\n";
|
||||||
if($showHeader) echo "<b>Debug (line $caller[line] of $file):</b>\n ";
|
if($showHeader) echo "<b>Debug (line $caller[line] of $file):</b>\n ";
|
||||||
echo Convert::raw2xml(trim($message)) . "</p>\n";
|
echo Convert::raw2xml($message) . "</p>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user