niumainframe / webjcl

Web-based IBM mainframe IDE.
15 stars 12 forks source link

Download output windows formatted (detect os?) #21

Closed scvnc closed 11 years ago

scvnc commented 11 years ago

Bug feedback was submitted:

I can guess that this is because the output Unix formatted where line endings are represented by '\n' and Windows users expect '\r\n';

If the user agent is windows, we should try having it download with the windows line endings.

scvnc commented 11 years ago

I have not tested this in Windows directly but the user agentness check should work.

scvnc commented 11 years ago

For students who are curious about the technical reason behind this issue: http://kb.iu.edu/data/acux.html It's not that there's no formatting, but just the wrong formatting for your OS. Good to know for future projects.