Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Posts
    2

    Default Display of line ending characters

    I am doing file compares to ensure that the line endings are using the Unix format of line feed (LF) only, as opposed to Windows carriage return and line feed (CR LF) format.

    The attached screen shot shows what I see in Beyond Compare.

    According to the Window Character Map for arial, the character on the end of lines of the left is the "currency sign" while the one on the right is the "pilcrow sign". Is there some trick to display LF and CR LF instead of those odd symbols? Does anyone know which of those symbols means LF and which means CR LF?

    Thanks!

  2. #2
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    CrLf are hex values 0D 0A.
    Choose View \ Hex Details to see these values.

    In the old typewriter days: A carriage return, by definition, returned the carriage to the beginning of the same line. A line feed moved the carriage to the next line. Both could be performed independently.

    BC3 displays line endings as follows:
    « Cr (Carriage Return only) - Character represents a return to beginning of line.
    Lf (Line Feed only) - Character represents a new paragraph (which always requires a line feed).
    ¤ CrLf (Carriage Return followed by a Line Feed)
    Last edited by Michael Bulgrien; 18-Aug-2008 at 09:48 AM.
    BC v4.0.7 build 19761
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

  3. #3
    Join Date
    Oct 2007
    Posts
    437

    Default

    The overall line ending style is shown in the editor's status bar. See attached.
    Erik Scooter Software

  4. #4
    Join Date
    Aug 2008
    Posts
    2

    Default

    Thanks for the info. That was just what I was looking for.

Posting Permissions

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