Single Touch Payroll Worksheet CSV layout problem

I suspect the problem is the new editor removes carriage returns and other white space which would break this code snippet