Bug 630693 - Web console's copying adds extra newline between groups.; f=rcampbell r=beltzner approval2.0=beltzner

This commit is contained in:
Adam 2011-03-02 12:02:59 -04:00
parent e25792ca13
commit 81905e1dc8

View File

@ -2901,7 +2901,7 @@ HUD_SERVICE.prototype =
for (let i = 0; i < aOutputNode.selectedCount; i++) {
let item = aOutputNode.selectedItems[i];
// Add newlines between groups so that group boundaries show up in the
// Add dashes between groups so that group boundaries show up in the
// copied output.
if (i > 0 && item.classList.contains("webconsole-new-group")) {
newGroup = true;
@ -2912,7 +2912,7 @@ HUD_SERVICE.prototype =
!item.classList.contains("hud-filtered-by-string")) {
let timestampString = ConsoleUtils.timestampString(item.timestamp);
if (newGroup) {
strings.push("\n");
strings.push("--");
newGroup = false;
}
strings.push("[" + timestampString + "] " + item.clipboardText);