when i save a file to my Dropbox at home on my PC is seems to have '\n' line breaks, but when i open the file on my Mac at work the line breaks have mutated to '\r\n' windows line breaks.

could dropbox be doing this? or do i need to look elsewhere for the source of my problem?

  • How do you check it? Which apps do you use to write / read the file? Please be more specific! – slhck Aug 16 '11 at 11:49
  • What text editor are you using on both systems? – Phoshi Aug 16 '11 at 11:56

Either the program on your PC changed them or more than likely, the program you opened the file in your Mac changed them.

Dropbox itself is file content agnostic.

  • Yeah, Dropbox just saves it as a bytestream and does not care about what is inside. – sinni800 Aug 16 '11 at 12:47

Dropbox shouldn't - though it might be the text editor doing it - i've seen this happen working between windows and linux.


As the other answers here allude, it's not a Dropbox issue. This is a common thing when moving between operating systems/file systems. See http://en.wikipedia.org/wiki/Newline#Common_problems for example. Many text editors can toggle between the two; this is part of the Preferences dialog from EditPlus, for example

EditPlus gives the user a choice of how to save files, which newline character(s) to use

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.