7f55a8665b16f106f5909b6294073d63e096b524 — Cadence Ember 1 year, 8 months ago a645b29
Fix Windows line endings conversion
1 files changed, 3 insertions(+), 3 deletions(-)

M processor.js
M processor.js => processor.js +3 -3
@@ 383,12 383,12 @@ if (!fs.existsSync(filename)) {
	throw new Error(`File '${filename}' does not exist.`)
if (process.stdout.isTTY) {
	throw new Error("You should definitely redirect the output of this program to a file.")
	throw new Error("You should definitely save the output to a file. To do this, end your command with an arrow and a filename, like: > 1.dia")

// load the file
const fileContents = fs.readFileSync(filename, "utf8")
fileContents.replace(/\r\n/g, "\n")
let fileContents = fs.readFileSync(filename, "utf8")
fileContents = fileContents.replace(/\r\n/g, "\n")

// save the file