Handling of mixed line endings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MikeGale
    Journeyman
    • Apr 2009
    • 15

    Handling of mixed line endings

    I sometimes discover that I have a file with "mixed" line endings, when working in BC.

    I fix these (using an editor) when I spot them but I'm looking for a better way.

    What do other Beyond Compare users do to fix this issue?
  • tfrost
    Expert
    • Feb 2006
    • 95

    #2
    Years ago I just wrote a trivial program to do this, that can be run in a batch file. But I do not think I still have it: I need this so rarely that using Notepad++ manually is sufficient.

    Google finds plenty of options for Convert Line Endings.

    Comment

    • tlscales
      Expert
      • Oct 2007
      • 74

      #3
      I use BC's built-in line ending conversion: Edit | Convert File | Line Endings | <select from "To Windows/DOS", "To Unix", and "To Macintosh">. A lot easier than switching to another program.

      Comment

      • MikeGale
        Journeyman
        • Apr 2009
        • 15

        #4
        Thanks tlscales, for that.

        There's a number of ways of doing that but that is one of the best as BC has a great UI for seeing the issue in the first place.

        How is an Apple style line-break indicated when the show whitespace option is on? (The following shows the Windows then Unix versions.)

        Click image for larger version  Name:	ProgramDevelopment_VisibleWhitespace_DifferentLine-Breaks_20200806.png Views:	0 Size:	1.3 KB ID:	83937
        Last edited by MikeGale; 05-Aug-2020, 10:11 PM.

        Comment

        • RodolfoGiovanninetti
          Veteran
          • Oct 2007
          • 336

          #5
          In my case here is a screen-shot with Windows to Mac.

          Regards

          Rodolfo Giovanninetti

          Click image for larger version

Name:	Mac.PNG
Views:	179
Size:	36.4 KB
ID:	83940

          Comment

          Working...