PDA

View Full Version : Question about rule based file comparison


21-Apr-2004, 11:10 AM
I would like to do a rule based comparison of files that match all except for extra blank lines at the end of the one file. I tried setting up a rule to ignore trailing whitespace, but I think that is trailing on a given line, not trailing lines themselves. If I look at the hex of the files I am comparing, one file ends with 20 more 0x0A (Unix Line Feed). If the rest of the file matches, is there any way to get Beyond Compare to say these files match?

Thanks.

Chris
22-Apr-2004, 01:35 PM
First, make sure View|Ignore Unimportant Differences is turned on.

Then in a rule for the files you want to compare, under the General Tab, check the Line endings check box in the Whitespace Includes section.

Under the Importance tab, check Line Endings and Blank Lines as Unimportant text.

This should ignore the line feeds.

26-Apr-2004, 08:44 AM
Thanks - that did the trick