Forums / General Questions / Winmerge comparisons and whitespace?

Winmerge comparisons and whitespace?

Locked

Views: 3,387

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
8 Jul 2010, 11:17 PM
#1
countingsheep avatar

countingsheep

Zen Follower

Join Date:
Sep 2006
Posts:
154
Plugin Contributions:
0

Winmerge comparisons and whitespace?

I am comparing files for an upgrade, and when I do, I get entire directories that show the files are different, yet, when I view the files, I see nothing different unless I select the option to view whitespace then it shows an extra space at the end of the line of code.. at least that is what I see?.. is that something that is crucial that I change? or can I filter that out to be ignored?

9 Jul 2010, 4:19 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Winmerge comparisons and whitespace?

Your files have likely been downloaded and saved with different line-endings than originally issued. This often happens with FTP programs translating from unix to windoze and vice-versa. You can probably prevent your FTP program from doing that by changing settings within it.
You can also tell WinMerge to ignore line-ending differences when doing comparisons.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Jul 2010, 5:48 PM
#3
countingsheep avatar

countingsheep

Zen Follower

Join Date:
Sep 2006
Posts:
154
Plugin Contributions:
0

Re: Winmerge comparisons and whitespace?

I have the option off for viewing line differences, but it still shows a difference of some kind. Is there something else that I am missing? Or am I just the lucky one who gets sites that are all jacked up?