Line feed found but not carriage return - Using notepad


For some reason or another you might want to look at your sketches using the simple notepad editor. Doing this you will remark the old incompatibility between DOS and UNIX: the lines of the *.ino files are terminated by a line feed character (LF, 0x0A) but notepad (as the old typewriters did) wants the two characters line feed plus carrige return (CR, 0x0D).

A surprisingly simple solution is:
open the *.ino file with Wordpad, do nothing and store it again. Now the missing CRs are inserted. And the good news: the Arduino IDE does not mind if you open it again.


contact: nji(at)gmx.de