Using UNIX linebreaks in Windows Ruby

Posted by Lowgain on Stack Overflow See other posts from Stack Overflow or by Lowgain
Published on 2010-04-27T22:14:20Z Indexed on 2010/04/27 22:33 UTC
Read the original article Hit count: 345

Filed under:
|
|

Is it possible to tell Ruby in Windows to use only \n instead of r\n? I'm having an issue where a file is being saved with \r\n and it is causing it to not function properly. Is there a setting somewhere I can change to fix this?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about linebreaks