[WebProfilerBundle] fix context log pre wrap
This commit is contained in:
parent
6fb9fee200
commit
6b23861074
@ -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 {
|
||||
|
@ -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)) {
|
||||
|
Reference in New Issue
Block a user