diff options
| -rw-r--r-- | editor/editor.ts | 7 |
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(); |
