diff --git a/src/Terminal/commands/cat.ts b/src/Terminal/commands/cat.ts index 0807e8a84..a108662f0 100644 --- a/src/Terminal/commands/cat.ts +++ b/src/Terminal/commands/cat.ts @@ -49,7 +49,7 @@ export function cat(args: (string | number | boolean)[], server: BaseServer): vo } else if (filename.endsWith(".script") || filename.endsWith(".js")) { const script = Terminal.getScript(relative_filename); if (script != null) { - dialogBoxCreate(`${script.filename}

${script.code}`); + dialogBoxCreate(`${script.filename}\n\n${script.code}`); return; } } diff --git a/src/TextFile.ts b/src/TextFile.ts index 673c9e35c..5ce2a9adc 100644 --- a/src/TextFile.ts +++ b/src/TextFile.ts @@ -54,7 +54,7 @@ export class TextFile { /** Shows the content to the user via the game's dialog box. */ show(): void { - dialogBoxCreate(`${this.fn}

${this.text}`); + dialogBoxCreate(`${this.fn}\n\n${this.text}`); } /** Serialize the current file to a JSON save state. */