Welcome to WebmasterWorld Guest from

Forum Moderators: travelin cat

Message Too Old, No Replies

pc & mac editing-- whitespace disappears?

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

Preferred Member

10+ Year Member

joined:Apr 16, 2004
votes: 0

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?

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

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 1, 2003
votes: 0

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.

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

New User

10+ Year Member

joined:Sept 14, 2005
votes: 0

I use Alpha on the Mac, Textpad on PC and gedit on linux and it all works out hunkydory
8:37 pm on June 21, 2006 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member whoisgregg is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Dec 9, 2003
votes: 0

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



Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members