Preserved Topic: extra hard returns in code after FTP transfer? |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: out of a sleepy funk |
posted 11-06-2002 03:35
This is driving me absolutely insane, I want to choke someone or something. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 11-06-2002 03:47
Do you always use the same text editor? I know mine converts text files to "DOS" mode but it asks first and I'm wondering if yours might do the same without a prompt and mucking up the conversion |
Bipolar (III) Inmate From: a little too close to NYC |
posted 11-06-2002 04:00
I noticed a similar problems a while back with WSFTP (not sure what version). It would add random <CR><LF>'s to my HTML files. Never caused a problem. I've been using SmartFTP (http://www.smartftp.com) for a few months now and haven't seen anything like that. Hope that helps. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-06-2002 04:20
This is very timely as I was just discussing this with Butcher (who I believe has been discussing it with you JK?). Sometimes some files (largely PHP or HTML) Steve sends me or uploads and I later grab collapse all the whitespace so the code is all on one line which isn't desirable and sometimes cause things to break. |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 11-06-2002 04:36
remember to save your text files as 'ANSI'.. |
Maniac (V) Inmate From: out of a sleepy funk |
posted 11-06-2002 04:37
yeah bit! I was hoping it was an editor or server issue (as opposed to operator error) |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-06-2002 04:51
JKMabry: I'm a little promiscuous (sp?) and use Notepad, Wordpad, Beauty and 1stPage as the mood takes me. I know Butcher was able to edit the file and save it in Beauty when I had struggled in Notepad and Wordpad but I have also tried in all of them in the past. Sometimes the whitespace disappears when I save and sometimes I need to close it down and open it again. |
Maniac (V) Inmate From: Boston, MA, USA |
posted 11-06-2002 05:08
Is the server UNIX? Is there any remote possibility the files are converted to UNIX line endings automatically when saved to the server? |
Maniac (V) Inmate From: Seoul, Korea |
posted 11-06-2002 05:09
quote:
|
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 11-06-2002 05:13
something else I've noticed (this may just be the ftp server I'm using but) if you overwrite a file with a smaller file it'll keep the ending of the smaller file often times. I could not figure this out for the longest time and it was driving me crazy. But ya, that's probably just the ftp server I'm using. Now I just delete something and then ftp it instead of just overwriting it. BTW ftping with the command prompt is the best, who needs a gui. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-06-2002 05:55
After a quick chat with Steve it appears the disappearing whitespace/line returns was due to his saving it with Macintosh line endings (rather than Unix o DOS). This doesn't, however, explain why when opened and saved through Beauty that it added about 5 or 6 extra returns. However, it might add some piece of evidence to the mystery. |
Maniac (V) Inmate From: out of a sleepy funk |
posted 11-06-2002 16:33
Excellent, one for the archives fellas! From my host's board reply... quote:
|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-06-2002 17:41
JKMabry: That explains all the problems reported above - nice I've added this to the FAQ: |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 11-06-2002 17:48
Just to be clear, is this a WS_FTP thing or a server thing? I use CuteFTP pro and UltraEdit's built in FTP and have never had this problem. (or I've never noticed it) |
Maniac (V) Inmate From: out of a sleepy funk |
posted 11-06-2002 17:49
FAQ mastah E! |
Maniac (V) Inmate From: out of a sleepy funk |
posted 11-06-2002 17:52
bit, it's a system thing, Win/Apple/*nix and not transferring the file in proper mode. I can't say if it's a wsFTP thing or not since I define how each file extension is transfered myself in the preferences. wsFTP may very well do it perfectly fine if I didn't mess with the default config and left all the accounts to transfer on 'auto detect' |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-06-2002 17:52
bitdamaged: Its possibly not even a fully FTP problem as I have had similar problems with files going between Steve, Butcher and myself. |
Maniac (V) Inmate From: Boston, MA, USA |
posted 11-06-2002 18:46
Bingo. I'm still pretty new at the collaboration game. A good suggestion to anyone in that sort of envionment is - agree up front what line endings to use! BBEdit gives me options - I just never thought to utilize that. |