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
This commit is contained in:
parent
0f00042824
commit
c8ee042ef7
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue