diff --git a/package.json b/package.json index f6925e3..3deb5b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squiffy", - "version": "2.2.0", + "version": "2.2.1", "description": "A tool for creating multiple-choice interactive stories", "dependencies": { "finalhandler": "^0.3.1", diff --git a/squiffy.js b/squiffy.js index 86cf69d..feed257 100644 --- a/squiffy.js +++ b/squiffy.js @@ -21,7 +21,7 @@ String.prototype.endsWith = function(suffix) { return this.indexOf(suffix, this.length - suffix.length) !== -1; }; -var squiffyVersion = "2.2"; +var squiffyVersion = "2.2.1"; function Compiler() { this.process = function(inputFilename, sourcePath, options) { @@ -158,7 +158,7 @@ function Compiler() { console.log("Loading " + inputFilename); var inputFile = fs.readFileSync(inputFilename); - var inputLines = inputFile.toString().split("\n"); + var inputLines = inputFile.toString().replace(/\r/g, "").split("\n"); var compiler = this; var lineCount = 0;