PHPed add's caret: ^M |
Site Admin
|
PhpED always saves consistent line endings -- either all \r\n or all \n or all \r when windows, unix and mac line endings style selected respectively. So if you have some lines with \r and some without, it's not produced by PhpED, definitely.
|
||||||||||||
_________________ The PHP IDE team |
|
Thanks dmitri,
To rule out other culprits, ran git diff to ensure the file had no changes, opened the file with PhpED, added the single line at the bottom, clicked the PhpED save button, and ran git diff again, and you will see I have a bunch of changes. I then discarded the changes, used Notepad+ which is running on Windows to edit the file which is located on Linux and accessible via the same Samba network which PhpED uses, and it didn't add the ^M characters. If not PhpED, what can be doing this?
|
||||||||||||||
|
Site Admin
|
Is it a local file? I bet it's not. If you're using a kind of WebDrive or similar tools, they may edit your files too and add all these ^M. For example it's known that WinSCP does that (unless you turn off automatic file type recognition). Regarding PhpED, it's absolutely impossible to get \r on some line endings in this editor. Even if you open a file containing \r at some line endings, then just save it, you'll get either all line endings with \r or no one -- depending on the preferences.
|
||||||||||||
_________________ The PHP IDE team |
PHPed add's caret: ^M |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by