Sublime Forum

DOS/Unix file

#1

Something funny I noticed recently…

Most editors don’t show the difference between dos files and unix files very prominently, if at all. My emacs shows “^M” at the end of dos lines, but only if some lines don’t have it. Anyway, I noticed that if a sublime user edits a dos file that doesn’t have a cr at the end of the file, when that user saves that file, sublime saves it with the dos character at the end of every line except one, and that one is the one that was the original last line with no cr.

0 Likes