No announcement yet.

Handling of mixed line endings

  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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.


    • #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.


      • #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.


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


          Rodolfo Giovanninetti

          Click image for larger version

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