6

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?

Kirt
  • 7,561

4 Answers4

12

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.

surfasb
  • 22,896
2

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

Journeyman Geek
  • 133,878
1

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

StevenV
  • 706
0

Yes, it is a dropbox editor issue. Dropbox changes LFs into CRs when the text file that is saved is not ANSI but a UTF variant. Many android editors behave this way. QuickEdit by Rhythm worked for me in the end. I can now interchangeably use text files between quickedit on android and notepad in windows.