{"action":"opened","issue":{"url":"https://api.github.com/repos/scottgonzalez/better-diff/issues/4","labels_url":"https://api.github.com/repos/scottgonzalez/better-diff/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/scottgonzalez/better-diff/issues/4/comments","events_url":"https://api.github.com/repos/scottgonzalez/better-diff/issues/4/events","html_url":"https://github.com/scottgonzalez/better-diff/issues/4","id":113432488,"number":4,"title":"Whitespace change detection and handling","user":{"login":"scottgonzalez","id":141167,"avatar_url":"https://avatars.githubusercontent.com/u/141167?v=3","gravatar_id":"","url":"https://api.github.com/users/scottgonzalez","html_url":"https://github.com/scottgonzalez","followers_url":"https://api.github.com/users/scottgonzalez/followers","following_url":"https://api.github.com/users/scottgonzalez/following{/other_user}","gists_url":"https://api.github.com/users/scottgonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/scottgonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottgonzalez/subscriptions","organizations_url":"https://api.github.com/users/scottgonzalez/orgs","repos_url":"https://api.github.com/users/scottgonzalez/repos","events_url":"https://api.github.com/users/scottgonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/scottgonzalez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T19:26:50Z","updated_at":"2015-10-26T19:26:50Z","closed_at":null,"body":"I wonder if the default behavior should try to detect whitespace changes that are only relevant because of a new block being introduced. For example https://github.com/scottgonzalez/jquery-ui/commit/693f6807c28b4636e0b985c144e15f1370ed0063 vs https://github.com/scottgonzalez/jquery-ui/commit/693f6807c28b4636e0b985c144e15f1370ed0063?w=1.\r\n\r\nWith the CST diff, we'd already know that the only thing that changed inside the new conditional is the leading whitespace for each line, so the diff would already be better. But it might be nice to skip over that part of the diff, or maybe just insert a symbol to indicate that the whitespace changed without actually having insertion/deletion marks for the whole block."}}