#103 How to make setting: ignore blank lines working

open
nobody
None
5
2013-08-10
2013-08-05
milsource
No

If i enable the setting: ignore blank lines (and also whitespace) under settings-compare-general in winmerge 2.14.0.0 under Windows
and compare two C-Files, i get 1000 unwanted differences.

In the first C-File there are many lines with some space or a return
Example:

Var1= 0;

if( Var2 == 1234)

in the second (identical) C-File, the empty line is not pressent
Example:

Var1= 0;
if( Var2 == 1234)

(possibly formated with the UnCrustify tool and empty lines are converted to a single carrige return..???)

Ok, it's a little bit different, but if i select: ignore blank lines, i want to ignore those lines.....
I also enabled: Enable moved block detection,Match similar lines... without success.

It is a bug or a feature...

But it would be fine, if those lines are ignored by the setting
or a new setting like: ignore empty/blank lines (one file has a blank or missing/trimmed line, one contains space(es).)

Is it possible to ignore blank/empty lines??

Discussion

  • Jochen Tucht
    Jochen Tucht
    2013-08-10

    Try this line filter:

    ^\s*$