Menu

#2207 Comparaison of file without considering empty lines don't work when emtpy lines are placed at end of file

Branch
open
nobody
None
5
2019-03-14
2018-09-11
No

On WinMerge 2.14.0.0 (and also on 2.15.2.0 64 bits) when I compare 2 files that are "identical" except on presence on empty lines AT END of file, Winmerge say that these file are different even if option "Ignore Blank Lines" is checked.

I will add these 2 files to this post so you have the possiblity to test it.

I have also added CONFIGURATION file in attachement as requested.

3 Attachments

Discussion

  • Takashi Sawanaka

    • status: open --> closed-invalid
     
  • Takashi Sawanaka

    sorry for the late reply.
    The last line is not a blank line but a line that contains a space.
    Therefore, the IgnoreBlankLines option does not ignore the line differences.

     

    Last edit: Takashi Sawanaka 2019-03-14
  • Bernard Schleich

    Sorry but when I compare the 2 files, I don't compare BLANK-SPACE.
    In WinMerge.txt file you can see
    Settings/IgnoreSpace=2

    Even when this parameter is set, WinMerge return that the 2 files are distints ... and this is not normal.

    You have analyzed this bug in considering only "Ignore Blank Line" without looking "Ignore space" parameter value.

    I want to add that your parameter name "IgnoreBlankLines" is ambigous. A better name should be "IgnoreEmptyLines".

    A better solution (perhaps an enhancement suggestion), would be to allow both functionnalities ;-)

    In all cases, this is a bug.

    Can you please reopen this bug ? Thanks

     
  • Takashi Sawanaka

    • status: closed-invalid --> open
     
  • Takashi Sawanaka

    understood. I reopen it.

     

Log in to post a comment.

MongoDB Logo MongoDB