![]() |
![]() |
#980 |
Random Account
Aug 2009
Not U. + S.A.
7·192 Posts |
![]()
I remember \n from trade school. New line. \r must be more recent. As long as it does its job and you have no suspicions about it working properly, then no problem here.
|
![]() |
![]() |
![]() |
#981 | |
"/X\(‘-‘)/X\"
Jan 2013
C1216 Posts |
![]() Quote:
Old Mac, before Mac OS X (which is Unix under the hood), used the carriage return character (13 or 0D), \r. CP/M used both, \r\n. In many ways MS DOS was modelled after CP/M, including the use of both characters for a new line. That has continued on to modern Windows. Most programming languages discard white space. Most editors are smart enough to work with the existing encoding of a text file. https://blog.codinghorror.com/the-great-newline-schism/ |
|
![]() |
![]() |