Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The last blank line is not ignored #203

Closed
btnlq opened this issue Oct 9, 2019 · 7 comments
Closed

The last blank line is not ignored #203

btnlq opened this issue Oct 9, 2019 · 7 comments

Comments

@btnlq
Copy link

btnlq commented Oct 9, 2019

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

@production-raps-kev
Copy link

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

@sambartle
Copy link

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.

@marcinhordziej
Copy link

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

@JasperTeng
Copy link

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.

@sambartle
Copy link

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.

@TFWol
Copy link

TFWol commented Apr 21, 2024

Yes, this is still annoying.

@sdottaka
Copy link
Member

PR #2573 allows you to ignore differences where only one of the files does not have a trailing newline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants