Fix indentation, tweak newlines

This commit is contained in:
Ben Visness 2021-09-22 22:35:07 -05:00
parent 7063fd5604
commit a38727ed69
1 changed files with 213 additions and 213 deletions

View File

@ -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`;
} }
} }