Ignore White Space in Diff

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
shaileshdwivedi
Posts: 17
Joined: Tue Oct 03, 2006 9:59 am

Ignore White Space in Diff

Post by shaileshdwivedi » Thu Nov 16, 2006 2:17 pm

I Turned On the "Ignore White Space" in the Diff window settings. However, when I run Folder comparison, it brings up the files that has Only the White Space difference. Why?
Attachments
IgnoreWhiteSpaceInDiff.doc
(166 KiB) Downloaded 393 times

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Thu Nov 16, 2006 4:10 pm

Is the white space in these files from blank lines?

This is a known issue in the Diff/Merge tool.

When the "ignore white space" option is enabled in the file comparison options, line feeds show up as insertions. We have a bug logged to ignore feeds/new lines also.

Part of the problem is that there are several defintions of "ignore whitespace." For example, there's an: ignore leading white, ignore all white, and ignore changes in white. Our tool uses "ignore changes in white", so all sequences of 2 or more spaces are treated as if they were 1 space also, lines are handled differently.

We're re-writing the Diff-Merge tool for Vault 4.0. Do you have suggestions on how white space should be handled? I can add your comments to the bug report.
Linda Bauer
SourceGear
Technical Support Manager

Locked