7
I've been bugged with this problem for ages and I just tried to ignore it, but when I open files for the first time that was saved from a mac/unix box, I get to see an extra line break after each line:
something like
this
which is pretty
annoying
What I usually do is just do one of the many fixes for this behavior in google, like the TextFX solution to delete all blank lines.
But I am just curious as to why this happens. Why? Why does it not happen again even if I save the file, push it to the git repo(and when it gets edited by another user in a mac/unix) I don't get this problem anymore?
EDIT
the git problem was a problem I had before but our current problem right now is that we are uploading files using rail's paperclip, which saves it to the file system(we are using a windows machine). when we open the files, we see it as "macintosh" "ansi" even if the server is running on windows. is there a way to make it open it with the proper encoding by default?
What version are you using? I never had this problem here. Also, what characters show up when "Show All Characters" is enabled? – Aluísio A. S. G. – 2011-06-14T08:30:46.593
do you have an example file? – James P – 2011-06-14T09:42:48.250
If you select (from the menu) View > Show symbol > Show End of Line, what do you see then? – njd – 2011-06-14T09:55:35.680
we are using the latest version of notepad++, we just downloaded it and all the files we load are in "macintosh" "ansi" at the lower right corner. We tried the conversion thing to no avail though. the best we could do was to replace all "\r" with a blank space and it worked. we would like to open files like those by default as "windows" "utf8" to avoid the double line breaks...is this possible? – corroded – 2011-06-14T13:54:43.913
My guess is that you're getting bit by some file transfer quirk, such as the one described below by Dick. – Daniel R Hicks – 2012-04-22T14:48:29.733