fix #12
parent
6018ca5f99
commit
aba61afc59
|
|
@ -21,7 +21,12 @@ class LeFormatter {
|
|||
for (let i = 0; i < lines.length; i++)
|
||||
lines[i] = this.#formatString(lines[i], dedupe, removeUnderscore);
|
||||
|
||||
textArea.value = lines.join(appendComma ? ',\n' : '\n');
|
||||
if (!appendComma)
|
||||
textArea.value = lines.join('\n');
|
||||
else {
|
||||
const val = lines.join(',\n');
|
||||
textArea.value = val.replace(/\n,\n/g, "\n\n");
|
||||
}
|
||||
|
||||
if (autoRefresh)
|
||||
updateInput(textArea);
|
||||
|
|
|
|||
Loading…
Reference in New Issue