Menu

How do I eliminate double spacing?

2008-01-14
2012-11-13
  • Nobody/Anonymous

    I have a text file (report.prn) that looks OK
    on the screen, yet when it prints, I get an extra
    line (double spacing) after each line in the file.
    It is a Windows created file that contains CR LF characters.
    How can I eliminate the printing of extra lines (double spacing).

    Using other text editors, I get mixed results.
    Some behave like Notepad ++,  others, like Crimson Editor,
    behave properly.

    Thanks.

     
    • Nobody/Anonymous

      Thanks to all that have responded.

      It turned out to be a line spacing problem,
      a combination of eliminating some exta blanks before the CR LF,
      not printing the line number and/or using a smaller font did the trick.

      Thanks again!

       
    • Joe in Minneapolis

      When you do "View > Show all characters", are there extra CRs or LFs, where one extra of them doesn't cause Notepad++ to show it as an extra line, but your printer is interpreting it?

       
    • Nobody/Anonymous

      I just have a single pair of CR LF per line.

       
    • Nobody/Anonymous

      What happens if you print it to a text file?

       
    • pshute

      pshute - 2008-01-17

      Interesting that it happens with some other programs too, indicating that it isn't a Notepad++ fault.

      There must be something else in there causing it.  Have you had a look with a hex viewer?  Have you tried deleting all the characters up to (but not including) the end of some of the lines, just to see if it still happens?

      Also, is it possible that it's the printer wrapping when it just reaches the edge of the page.  If so, then changing to a smaller font would fix it.  I haven't seen that sort of problem since before Windows 3.1, but I'm not sure if that's because drivers have improved or because programs have.

      Are there any spaces at the ends of the lines, that might be causing the printer to wrap?

       
      • Nobody/Anonymous

        Does it also happen if you first select the complete document and then directly paste it back in Notepad++?

         
    • Dmitriy

      Dmitriy - 2008-01-17

      Select Format>Conver-to-UNIX-format

       
    • pshute

      pshute - 2008-01-17

      Also, have you tried TextFX Characters/Zap All Non Printable Characters?

       
MongoDB Logo MongoDB