From c8ee042ef796e03b8743b000d8e8f95c676c121f Mon Sep 17 00:00:00 2001 From: spaciecat <5057054+spaciecat@users.noreply.github.com> Date: Thu, 12 Sep 2019 13:34:40 +1000 Subject: [PATCH] remove carriage teturns from script when parsing markdown newlines on windows are weird... it wouldnt even let me start the game unless i did this --- scripts/game/Game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/game/Game.js b/scripts/game/Game.js index 2fb5029..74a7fa1 100644 --- a/scripts/game/Game.js +++ b/scripts/game/Game.js @@ -47,7 +47,7 @@ Game.init = function(){ Game.parseSceneMarkdown = function(md){ // Split into sections... - md = md.trim(); + md = md.trim().replace(/\r/g, ""); md = "\n" + md; var sections = md.split(/\n\#\s*/); sections.shift();