aboutsummaryrefslogtreecommitdiff
path: root/editor/editor.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor.ts')
-rw-r--r--editor/editor.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/editor/editor.ts b/editor/editor.ts
index 1ea0438..dc58cd6 100644
--- a/editor/editor.ts
+++ b/editor/editor.ts
@@ -60,11 +60,8 @@ export class WuiEditor {
break;
}
- if (line == "\n") {
- content += line;
- } else {
- content += line + "\n";
- }
+ line = line.trimEnd();
+ content += line + "\n";
});
content = content.trim();