{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/2501","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2501/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2501/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2501/events","html_url":"https://github.com/spyder-ide/spyder/pull/2501","id":90473848,"number":2501,"title":"Make blank space less apparent.","user":{"login":"hugobuddel","id":1306453,"avatar_url":"https://avatars.githubusercontent.com/u/1306453?v=3","gravatar_id":"","url":"https://api.github.com/users/hugobuddel","html_url":"https://github.com/hugobuddel","followers_url":"https://api.github.com/users/hugobuddel/followers","following_url":"https://api.github.com/users/hugobuddel/following{/other_user}","gists_url":"https://api.github.com/users/hugobuddel/gists{/gist_id}","starred_url":"https://api.github.com/users/hugobuddel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugobuddel/subscriptions","organizations_url":"https://api.github.com/users/hugobuddel/orgs","repos_url":"https://api.github.com/users/hugobuddel/repos","events_url":"https://api.github.com/users/hugobuddel/events{/privacy}","received_events_url":"https://api.github.com/users/hugobuddel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Editor","name":"Editor","color":"d4c5f9"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/5","html_url":"https://github.com/spyder-ide/spyder/milestones/v3.0","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/5/labels","id":982077,"number":5,"title":"v3.0","description":"New major release","creator":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"open_issues":264,"closed_issues":101,"state":"open","created_at":"2015-02-16T23:17:23Z","updated_at":"2015-06-28T21:28:31Z","due_on":null,"closed_at":null},"comments":23,"created_at":"2015-06-23T19:41:42Z","updated_at":"2015-06-30T08:57:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spyder-ide/spyder/pulls/2501","html_url":"https://github.com/spyder-ide/spyder/pull/2501","diff_url":"https://github.com/spyder-ide/spyder/pull/2501.diff","patch_url":"https://github.com/spyder-ide/spyder/pull/2501.patch"},"body":"Less apparent blank space, improved readability, fixing #2175.\r\nForeground color of blank space (if shown) is blended with the background color, therefore being less strongly present in both light and dark schemes."},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/117062829","html_url":"https://github.com/spyder-ide/spyder/pull/2501#issuecomment-117062829","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2501","id":117062829,"user":{"login":"hugobuddel","id":1306453,"avatar_url":"https://avatars.githubusercontent.com/u/1306453?v=3","gravatar_id":"","url":"https://api.github.com/users/hugobuddel","html_url":"https://github.com/hugobuddel","followers_url":"https://api.github.com/users/hugobuddel/followers","following_url":"https://api.github.com/users/hugobuddel/following{/other_user}","gists_url":"https://api.github.com/users/hugobuddel/gists{/gist_id}","starred_url":"https://api.github.com/users/hugobuddel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugobuddel/subscriptions","organizations_url":"https://api.github.com/users/hugobuddel/orgs","repos_url":"https://api.github.com/users/hugobuddel/repos","events_url":"https://api.github.com/users/hugobuddel/events{/privacy}","received_events_url":"https://api.github.com/users/hugobuddel/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T08:57:32Z","updated_at":"2015-06-30T08:57:32Z","body":"Thanks @goanpeca, it is now refactored in an even better way.\r\n\r\nI didn't like the duplication of code, and indeed though of generalizing the 'in a string' part, but disliked that as well. You showed my why by taking the time to write it out: are there actually other use cases that resemble the Python multiline docstring like the earlier screenshot? I can't think of many.\r\n\r\nInstead, it was simpler to just recolor leading spaces, which is easy to generalize. And, it was trivial to add support for trailing spaces as well! The leading space format is hardcoded to 'normal', which is fine I guess. But the trailing space format is now hardcoded to 'number', because that is dark red in the default scheme. Any suggestions on how to improve on that?\r\n\r\n![leadingtrailing](https://cloud.githubusercontent.com/assets/1306453/8427246/32a4ae2c-1f16-11e5-96ba-6677316895ce.png)\r\n"}}