Notepad doesn't display line breaks

Discussion in 'Microsoft Windows 2000 Applications' started by Colin McCormick, Jul 1, 2003.

  1. When I view text files in Notepad under Windows 2000 Pro,
    their line breaks are often replaced by small rectangles.
    Word wrap doesn't change this, nor does changing the
    font. This only happens with files from somewhere else,
    never with files I have created. What's going on, and how
    can I change it?
     
    Colin McCormick, Jul 1, 2003
    #1
    1. Advertisements

  2. Colin McCormick

    Gary Smith Guest

    These files are probably Unix-format text files, which have only carriage
    returns marking the end of each line instead of the Windows standard
    carriage return plus line feed. What you need is a program that can
    convert Unix linebreaks to Windows linebreaks. There are many such
    programs available. I use NewLine from Steve Miller's Win32 Console
    Toolbox <http://stevemiller.net/apps/>. It can be run from a command
    prompt, but I found it more convenient to add an entry for it to the
    SendTo menu.
     
    Gary Smith, Jul 1, 2003
    #2
    1. Advertisements

  3. Colin McCormick

    aleph Guest

    Umm, try Wordpad, you'll be surprised to find out it DOES
    in fact serve a purpose! :D
     
    aleph, Jul 2, 2003
    #3
  4. Colin McCormick

    aleph Guest

    <quote>
    What you need is a program that can
    convert Unix linebreaks to Windows linebreaks.
    </quote>

    Like wordpad? :D
     
    aleph, Jul 2, 2003
    #4
  5. Colin McCormick

    Gary Smith Guest

    Yeah, that does work. Open the file and save it, and all of the line
    endings are fixed. I hardly ever use Wordpad, so it never occurred to me
    to try it. Of course, it may not be the best solution if you have a whole
    folder full of files to be converted. That's where the command line based
    approach shines.
     
    Gary Smith, Jul 2, 2003
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.