Problem Description
When Writing or Appending a file using Node-Webkit, newline seems to be ignored when the exported file is opened in notepad, it however works for other text editors i.e notepad++ or wordpad, its still an issue since i would assume notepad is the most common text editor since its a default.
With Javascript \n is acceptable for newline on most nix systems, but windows insists on \r\n
Couldnt upload Capx, kept saying "The uploaded file is empty"
Steps to Reproduce Bug
- On Start of Layout > NodeWebKit:WriteFile >
Path: nodewebkit.appfolder & "example.txt"
Contents: "Line 1" & newline & "Line 2" & newline & "Line 3"
- Export to Node-Webkit
- run executable
- open example.txt with notepad
Observed Result
The text shows as:
Line1Line2Line3
Expected Result
The text should show as:
Line1
Line2
Line3
Operating System and Service Pack
Windows 7 X64 Ultimate SP1
Construct 2 Version ID
173 (64 Bit)