Don't omit first line in debug output when submitting
This commit is contained in:
parent
9a8ab522e1
commit
695dd4e65d
1 changed files with 3 additions and 5 deletions
|
@ -198,11 +198,9 @@ Zotero.Debug = new function () {
|
||||||
if (maxChars) {
|
if (maxChars) {
|
||||||
output = output.substr(maxChars * -1);
|
output = output.substr(maxChars * -1);
|
||||||
// Cut at two newlines
|
// Cut at two newlines
|
||||||
for (var i=1, len=output.length; i<len; i++) {
|
let matches = output.match(/^[\n]*\n\n/);
|
||||||
if (output[i] == '\n' && output[i-1] == '\n') {
|
if (matches) {
|
||||||
output = output.substr(i + 1);
|
output = output.substr(matches[0].length);
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue