Some operating systems (i.e., Windows and BSD) like to break lines with Carriage Return
(CR) followed by Line Feed
(LF), or \r\n
.
While GNU / Linux, OS X and other Unix-like ones usually break only with LF ( \n
).
Is there any way in Javascript to get the line break character of the client system? Any HTML 5 APIs or anything that would allow me to get this without appealing to reading the user agent header of a request, in order to check the operating system?