Monday, August 4, 2014

Notepad's quirk of not showing line breaks

...is pretty frustrating. I made line breaks in a .txt file in Notepad, pushed the file up to Github, pulled it down elsewhere, and upon looking at it in Notepad, my line breaks where gone! Or were they? My application was still able to split a string read from the file's contents on the line breaks. If I look at the copy in Wordpad I see the line breaks. This just suggests this is merely a quirk of Notepad rather than anything I did wrong. It also recommends copying to Word (from Notepad) and then back to Notepad to see the line breaks. I tried as much and it works! ...meaning that the line breaks were always there to begin with. Whatever.

No comments:

Post a Comment