Fix indentation, tweak newlines
This commit is contained in:
parent
7063fd5604
commit
a38727ed69
|
@ -293,15 +293,15 @@
|
||||||
let linesToCursor = textField.value.substr(0, cursorStart).split("\n");
|
let linesToCursor = textField.value.substr(0, cursorStart).split("\n");
|
||||||
let cursorLine = linesToCursor[linesToCursor.length-1].trim();
|
let cursorLine = linesToCursor[linesToCursor.length-1].trim();
|
||||||
if (cursorLine.length > 0) {
|
if (cursorLine.length > 0) {
|
||||||
toInsert = "\n";
|
toInsert = "\n\n";
|
||||||
}
|
}
|
||||||
for (let i = 0; i < items.length; ++i) {
|
for (let i = 0; i < items.length; ++i) {
|
||||||
if (items[i].file) {
|
if (items[i].file) {
|
||||||
fileCounter++;
|
fileCounter++;
|
||||||
toInsert += makeUploadString(fileCounter, items[i].file.name) + "\n";
|
toInsert += makeUploadString(fileCounter, items[i].file.name) + "\n\n";
|
||||||
queueUpload(fileCounter, items[i].file);
|
queueUpload(fileCounter, items[i].file);
|
||||||
} else {
|
} else {
|
||||||
toInsert += `${items[i].error}\n`;
|
toInsert += `${items[i].error}\n\n`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue