[WebProfilerBundle] fix context log pre wrap

This commit is contained in:
Jules Pietri 2016-03-08 13:31:59 +01:00 committed by Fabien Potencier
parent 6fb9fee200
commit 6b23861074
2 changed files with 8 additions and 1 deletions

View File

@ -827,6 +827,7 @@ table.logs .metadata .context {
table.logs .metadata .context pre {
margin: 5px 0;
padding: 5px 10px;
white-space: pre-wrap;
}
table.logs .sf-call-stack {

View File

@ -58,7 +58,13 @@ class ValueExporter
return sprintf("[\n%s%s\n%s]", $indent, implode(sprintf(", \n%s", $indent), $a), str_repeat(' ', $depth - 1));
}
return sprintf('[%s]', implode(', ', $a));
$s = sprintf('[%s]', implode(', ', $a));
if (80 > strlen($s)) {
return $s;
}
return sprintf("[\n%s%s\n]", $indent, implode(sprintf(",\n%s", $indent), $a));
}
if (is_resource($value)) {