mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-24 18:22:03 +02:00
Avoid LF, \t, multiple spaces on timeline (#735)
This commit is contained in:
@@ -526,7 +526,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
|||||||
width: width + "%"
|
width: width + "%"
|
||||||
}));
|
}));
|
||||||
m.append($('<span />').addClass(csscls('label'))
|
m.append($('<span />').addClass(csscls('label'))
|
||||||
.text(measure.label + ( measure.duration ? " (" + measure.duration_str +(measure.memory ? '/' + measure.memory_str: '') + ")" : "")));
|
.text(measure.label.replace(/\s+/g, ' ') + ( measure.duration ? " (" + measure.duration_str +(measure.memory ? '/' + measure.memory_str: '') + ")" : "")));
|
||||||
|
|
||||||
if (measure.collector) {
|
if (measure.collector) {
|
||||||
$('<span />').addClass(csscls('collector')).text(measure.collector).appendTo(m);
|
$('<span />').addClass(csscls('collector')).text(measure.collector).appendTo(m);
|
||||||
@@ -573,7 +573,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
|||||||
width = Math.min((aggregate.data.duration * 100 / data.duration).toFixed(2), 100);
|
width = Math.min((aggregate.data.duration * 100 / data.duration).toFixed(2), 100);
|
||||||
|
|
||||||
aggregateTable.append('<tr><td class="' + csscls('name') + '">' +
|
aggregateTable.append('<tr><td class="' + csscls('name') + '">' +
|
||||||
aggregate.data.count + ' x ' + $('<i />').text(aggregate.label).html() + ' (' + width + '%)</td><td class="' + csscls('value') + '">' +
|
aggregate.data.count + ' x ' + $('<i />').text(aggregate.label.replace(/\s+/g, ' ')).html() + ' (' + width + '%)</td><td class="' + csscls('value') + '">' +
|
||||||
'<div class="' + csscls('measure') +'">' +
|
'<div class="' + csscls('measure') +'">' +
|
||||||
'<span class="' + csscls('value') + '"></span>' +
|
'<span class="' + csscls('value') + '"></span>' +
|
||||||
'<span class="' + csscls('label') + '">' + formatDuration(aggregate.data.duration) + (aggregate.data.memory ? '/' + formatBytes(aggregate.data.memory) : '') + '</span>' +
|
'<span class="' + csscls('label') + '">' + formatDuration(aggregate.data.duration) + (aggregate.data.memory ? '/' + formatBytes(aggregate.data.memory) : '') + '</span>' +
|
||||||
|
Reference in New Issue
Block a user