Hi,
I'm comparing two PHP files using rules. Both files were originally UNIX-formatted, but one of them was changed using a Windows editor that removes all trailing whitespaces. Some lines that have additional spaces appear as different. "Whitespace includes line endings" is turned on, "ignore unimportant differences" is turned on. I found out that if I add the "\s+$" regex to the irrelevant text list, however, lines show up as similar, which is effectively what I want.
Why do I need to add the regex, and what is the difference between Line Endings and "\s+$"? Shouldn't they be the same?
Thanks a lot,
I'm comparing two PHP files using rules. Both files were originally UNIX-formatted, but one of them was changed using a Windows editor that removes all trailing whitespaces. Some lines that have additional spaces appear as different. "Whitespace includes line endings" is turned on, "ignore unimportant differences" is turned on. I found out that if I add the "\s+$" regex to the irrelevant text list, however, lines show up as similar, which is effectively what I want.
Why do I need to add the regex, and what is the difference between Line Endings and "\s+$"? Shouldn't they be the same?
Thanks a lot,
Comment