Forum Moderators: travelin cat

Message Too Old, No Replies

pc & mac editing-- whitespace disappears?

         

disgust

12:32 am on Jun 19, 2006 (gmt 0)

10+ Year Member



a friend of mine is helping me on a site. she uses a mac, I use a pc. she says she uses bbedit lite to edit files. to her, they look fine, whitespace is in place. however, when she uploads them and I download them and view them on a pc (regardless of what I use to view it, notepad, notepad++, ultraedit, etc) the whitespace is completely stripped out.

what causes this? is there a program she should be using instead of what she has now?

timster

2:26 pm on Jun 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problem is most likely different line ending used by the different operating systems. Macs use either a carriage return or a line feed, while PC's require a Carriage return then a linefeed.

If your Mac using colleague selects Save As and then Options, she should see an option for Windows/DOS format.

Alternatively, if she zipped the files and you unzipped them, that would probably take care of the line endings too.

Certain applications/text editors have functionality to deal with line ending differences. Note Pad and Word Pad don't, however.

lesterofpupets

7:34 am on Jun 20, 2006 (gmt 0)

10+ Year Member



I use Alpha on the Mac, Textpad on PC and gedit on linux and it all works out hunkydory

whoisgregg

8:37 pm on Jun 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



BBEdit menu > BBEdit Preferences > Text Files: Saving > Default Line Breaks: (_) Macintosh (_) Unix (_) DOS/Windows

:)