Bug 37849 - "Ignore whitespace" ignores also closing brackets?!?
Summary: "Ignore whitespace" ignores also closing brackets?!?
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P2 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Andre Weinand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-20 04:52 EDT by Mathias Mehrmann CLA
Modified: 2003-05-22 09:55 EDT (History)
0 users

See Also:


Attachments
file with tab at beginning and closing bracket (137 bytes, text/plain)
2003-05-20 04:54 EDT, Mathias Mehrmann CLA
no flags Details
file with spaces at beginning and without closing bracket (143 bytes, text/plain)
2003-05-20 04:54 EDT, Mathias Mehrmann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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