Fixed new line bug on Windows