Bug 37849

Summary: "Ignore whitespace" ignores also closing brackets?!?
Product: [Eclipse Project] Platform Reporter: Mathias Mehrmann <mathias.mehrmann>
Component: CompareAssignee: Andre Weinand <andre_weinand>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P2    
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
file with tab at beginning and closing bracket
none
file with spaces at beginning and without closing bracket none

Description Mathias Mehrmann CLA 2003-05-20 04:52:21 EDT
Build: 200303272130

Hmm, I have a quite serious problem with the compare functionality. I have two
versions of a file and one contains an if-clause with a tab-character at the
beginning of the line and a closing bracket at the end. The other file is nearly
identic but the if-clause has 8 spaces at the beginning and the closing bracket
lacks!
The compare of the two files shows the difference in the structure compate but
in the files views there is NO sign of any difference!!!

I will add the two versions of the file as attachement.
Comment 1 Mathias Mehrmann CLA 2003-05-20 04:54:05 EDT
Created attachment 4907 [details]
file with tab at beginning and closing bracket
Comment 2 Mathias Mehrmann CLA 2003-05-20 04:54:51 EDT
Created attachment 4908 [details]
file with spaces at beginning and without closing bracket
Comment 3 Andre Weinand CLA 2003-05-22 09:55:54 EDT
Indeed, if ignore whitespace is on and if two lines differ only by the number of repeated characters 
at the end of the line, they will be considered equal.
So comparing "foo\n" and "fooo\n" results in the same problem. 
Thanks for finding this bug!

Fixed for > N20030522