winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

The last blank line is not ignored

Open btnlq opened this issue 6 years ago • 6 comments

WinMerge 2.16.4.0 x64

Program is configured to ignore whitespace, but:

  • Last blank line is not ignored.
  • Text3 lines are highlighted as different.

image

btnlq avatar Oct 09 '19 06:10 btnlq

This is almost a year old, has there been any movement on this?

production-raps-kev avatar Jul 12 '21 15:07 production-raps-kev

Is there any known workaround for this?

It flags just about every file for some of our projects due to a code cleaner adding a carriage return at the end of the file.

sambartle avatar Sep 10 '21 08:09 sambartle

Still an issue - makes comparing much more complicated on huge amount of files.

marcinhordziej avatar Feb 11 '22 14:02 marcinhordziej

I agree this should be fixed. most modern systems are able to handle texts without a blank last line. There is no need to highlight it specifically. If the concern is to maintain backward compatibility, maybe it can be added as an additional option. e.g.: [X] Ignore blank lines [_] including last line.

JasperTeng avatar Oct 26 '22 08:10 JasperTeng

It's a critical bug in my eyes.. as the ignore whitespace option basically doesn't work. I switched to a BC for this reason as its marked as Not a bug.. indicating its intentional.

sambartle avatar Oct 26 '22 11:10 sambartle