Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I'm currently using Windows but would like to switch over to Linux. Only problem is that I won't be able to leave Windows completely behind, because the school computers ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    1

    Will line spaces be an issue?

    Hi,

    I'm currently using Windows but would like to switch over to Linux. Only problem is that I won't be able to leave Windows completely behind, because the school computers are Windows. I heard that Linux and Windows have different characters for line spaces. Will this cause problems down the road (like editing a document on my Linux, taking it to school, and seeing a completely differently formatted document in the Windows school computers?)

    How do you guys deal with this, or is it not even an issue?

  2. #2
    Just Joined!
    Join Date
    Feb 2009
    Posts
    2
    I have had problems with lines in text files, but I've never had any problem with things like OpenOffice files.So for school this probably won't be a big problem.

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by proto-man View Post
    Hi,

    I'm currently using Windows but would like to switch over to Linux. Only problem is that I won't be able to leave Windows completely behind, because the school computers are Windows. I heard that Linux and Windows have different characters for line spaces. Will this cause problems down the road (like editing a document on my Linux, taking it to school, and seeing a completely differently formatted document in the Windows school computers?)

    How do you guys deal with this, or is it not even an issue?
    This only affects plain text files (i.e. the kind of file you can view and edit in your notepad). The rest of the files which have a proper format should work ok, as long as you have a program that's compatible with that format.

    If you are not sure, you can ask here for concrete formats, and someone around will probably be able to tell you how to deal with them in Linux.

    About the plain text files, there are tools to convert between the two formats. And, in windows, I think that you can view plain text files correctly in the wordpad when the line endings are screwed in the notepad.

    The only difference is that in linux we use a line feed mark to end a line (logical, isn't it?) while windows uses two characters instead of one: line feed + carriage return.

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    If you do have a problem with text files you will see them in Notepad on one oline with those squares where every new line should be. Wordpad will open them correctly in Windows.

    I have never had a problem going the other way.

    [edit]
    Actually, CR+LF is an old standard. On the old printers and terminals, CR (carriage return) sent the print head or cursor back to the beginning of the current line and LF (line feed) sent it to the current position on the next line. Therefore both were required to position the cursor at the beginning of the next line.

    CR + LF in that context actually makes far more sense than just one or the other
    [/edit]
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  5. #5
    Linux User
    Join Date
    Jun 2007
    Posts
    318
    On Linux there are utilities to convert those text files from Windows to Linux (or UNIX) and visa-versa. They're call dos2unix & unix2dos.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...