{"action":"closed","number":2420,"pull_request":{"url":"https://api.github.com/repos/less/less.js/pulls/2420","id":28240071,"html_url":"https://github.com/less/less.js/pull/2420","diff_url":"https://github.com/less/less.js/pull/2420.diff","patch_url":"https://github.com/less/less.js/pull/2420.patch","issue_url":"https://api.github.com/repos/less/less.js/issues/2420","number":2420,"state":"closed","locked":false,"title":"endlines and comments","user":{"login":"bassjobsen","id":954055,"avatar_url":"https://avatars.githubusercontent.com/u/954055?v=3","gravatar_id":"","url":"https://api.github.com/users/bassjobsen","html_url":"https://github.com/bassjobsen","followers_url":"https://api.github.com/users/bassjobsen/followers","following_url":"https://api.github.com/users/bassjobsen/following{/other_user}","gists_url":"https://api.github.com/users/bassjobsen/gists{/gist_id}","starred_url":"https://api.github.com/users/bassjobsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassjobsen/subscriptions","organizations_url":"https://api.github.com/users/bassjobsen/orgs","repos_url":"https://api.github.com/users/bassjobsen/repos","events_url":"https://api.github.com/users/bassjobsen/events{/privacy}","received_events_url":"https://api.github.com/users/bassjobsen/received_events","type":"User","site_admin":false},"body":"possible fix for https://github.com/less/less.js/issues/2370\r\n\r\nI have used the following command to test this issue: `printf \"p {\\r//less\\rc:1;\\r}\\r\" | lessc -`\r\n\r\nI'm not sure if this the most efficient fix.\r\nI also tried `var nextNewLine = inp.substr(parserInput.i + 1).search(/\\n|\\r/);` to replace the `indexOf` but then i expect possible mismatches for `\\r\\n` which match on the first `\\r`.","created_at":"2015-01-28T23:27:16Z","updated_at":"2015-01-30T07:12:39Z","closed_at":"2015-01-30T07:12:39Z","merged_at":"2015-01-30T07:12:39Z","merge_commit_sha":"37327a686fdc1ddbe011f86333dfeb02e8a3ebb9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/less/less.js/pulls/2420/commits","review_comments_url":"https://api.github.com/repos/less/less.js/pulls/2420/comments","review_comment_url":"https://api.github.com/repos/less/less.js/pulls/comments/{number}","comments_url":"https://api.github.com/repos/less/less.js/issues/2420/comments","statuses_url":"https://api.github.com/repos/less/less.js/statuses/cf4039625f6bdb50efd2a913f0c19e2f681cb9f8","head":{"label":"bassjobsen:patch-10","ref":"patch-10","sha":"cf4039625f6bdb50efd2a913f0c19e2f681cb9f8","user":{"login":"bassjobsen","id":954055,"avatar_url":"https://avatars.githubusercontent.com/u/954055?v=3","gravatar_id":"","url":"https://api.github.com/users/bassjobsen","html_url":"https://github.com/bassjobsen","followers_url":"https://api.github.com/users/bassjobsen/followers","following_url":"https://api.github.com/users/bassjobsen/following{/other_user}","gists_url":"https://api.github.com/users/bassjobsen/gists{/gist_id}","starred_url":"https://api.github.com/users/bassjobsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassjobsen/subscriptions","organizations_url":"https://api.github.com/users/bassjobsen/orgs","repos_url":"https://api.github.com/users/bassjobsen/repos","events_url":"https://api.github.com/users/bassjobsen/events{/privacy}","received_events_url":"https://api.github.com/users/bassjobsen/received_events","type":"User","site_admin":false},"repo":{"id":28032855,"name":"less.js","full_name":"bassjobsen/less.js","owner":{"login":"bassjobsen","id":954055,"avatar_url":"https://avatars.githubusercontent.com/u/954055?v=3","gravatar_id":"","url":"https://api.github.com/users/bassjobsen","html_url":"https://github.com/bassjobsen","followers_url":"https://api.github.com/users/bassjobsen/followers","following_url":"https://api.github.com/users/bassjobsen/following{/other_user}","gists_url":"https://api.github.com/users/bassjobsen/gists{/gist_id}","starred_url":"https://api.github.com/users/bassjobsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassjobsen/subscriptions","organizations_url":"https://api.github.com/users/bassjobsen/orgs","repos_url":"https://api.github.com/users/bassjobsen/repos","events_url":"https://api.github.com/users/bassjobsen/events{/privacy}","received_events_url":"https://api.github.com/users/bassjobsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bassjobsen/less.js","description":"Leaner CSS","fork":true,"url":"https://api.github.com/repos/bassjobsen/less.js","forks_url":"https://api.github.com/repos/bassjobsen/less.js/forks","keys_url":"https://api.github.com/repos/bassjobsen/less.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bassjobsen/less.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bassjobsen/less.js/teams","hooks_url":"https://api.github.com/repos/bassjobsen/less.js/hooks","issue_events_url":"https://api.github.com/repos/bassjobsen/less.js/issues/events{/number}","events_url":"https://api.github.com/repos/bassjobsen/less.js/events","assignees_url":"https://api.github.com/repos/bassjobsen/less.js/assignees{/user}","branches_url":"https://api.github.com/repos/bassjobsen/less.js/branches{/branch}","tags_url":"https://api.github.com/repos/bassjobsen/less.js/tags","blobs_url":"https://api.github.com/repos/bassjobsen/less.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bassjobsen/less.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bassjobsen/less.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/bassjobsen/less.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bassjobsen/less.js/statuses/{sha}","languages_url":"https://api.github.com/repos/bassjobsen/less.js/languages","stargazers_url":"https://api.github.com/repos/bassjobsen/less.js/stargazers","contributors_url":"https://api.github.com/repos/bassjobsen/less.js/contributors","subscribers_url":"https://api.github.com/repos/bassjobsen/less.js/subscribers","subscription_url":"https://api.github.com/repos/bassjobsen/less.js/subscription","commits_url":"https://api.github.com/repos/bassjobsen/less.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/bassjobsen/less.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/bassjobsen/less.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/bassjobsen/less.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/bassjobsen/less.js/contents/{+path}","compare_url":"https://api.github.com/repos/bassjobsen/less.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bassjobsen/less.js/merges","archive_url":"https://api.github.com/repos/bassjobsen/less.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bassjobsen/less.js/downloads","issues_url":"https://api.github.com/repos/bassjobsen/less.js/issues{/number}","pulls_url":"https://api.github.com/repos/bassjobsen/less.js/pulls{/number}","milestones_url":"https://api.github.com/repos/bassjobsen/less.js/milestones{/number}","notifications_url":"https://api.github.com/repos/bassjobsen/less.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bassjobsen/less.js/labels{/name}","releases_url":"https://api.github.com/repos/bassjobsen/less.js/releases{/id}","created_at":"2014-12-15T10:59:30Z","updated_at":"2014-12-15T10:59:32Z","pushed_at":"2015-01-29T10:11:06Z","git_url":"git://github.com/bassjobsen/less.js.git","ssh_url":"git@github.com:bassjobsen/less.js.git","clone_url":"https://github.com/bassjobsen/less.js.git","svn_url":"https://github.com/bassjobsen/less.js","homepage":"http://lesscss.org","size":9881,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"less:master","ref":"master","sha":"edca7f4cfa97c81e5664ec8ea13a904c9bdf469c","user":{"login":"less","id":3538330,"avatar_url":"https://avatars.githubusercontent.com/u/3538330?v=3","gravatar_id":"","url":"https://api.github.com/users/less","html_url":"https://github.com/less","followers_url":"https://api.github.com/users/less/followers","following_url":"https://api.github.com/users/less/following{/other_user}","gists_url":"https://api.github.com/users/less/gists{/gist_id}","starred_url":"https://api.github.com/users/less/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/less/subscriptions","organizations_url":"https://api.github.com/users/less/orgs","repos_url":"https://api.github.com/users/less/repos","events_url":"https://api.github.com/users/less/events{/privacy}","received_events_url":"https://api.github.com/users/less/received_events","type":"Organization","site_admin":false},"repo":{"id":527644,"name":"less.js","full_name":"less/less.js","owner":{"login":"less","id":3538330,"avatar_url":"https://avatars.githubusercontent.com/u/3538330?v=3","gravatar_id":"","url":"https://api.github.com/users/less","html_url":"https://github.com/less","followers_url":"https://api.github.com/users/less/followers","following_url":"https://api.github.com/users/less/following{/other_user}","gists_url":"https://api.github.com/users/less/gists{/gist_id}","starred_url":"https://api.github.com/users/less/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/less/subscriptions","organizations_url":"https://api.github.com/users/less/orgs","repos_url":"https://api.github.com/users/less/repos","events_url":"https://api.github.com/users/less/events{/privacy}","received_events_url":"https://api.github.com/users/less/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/less/less.js","description":"Leaner CSS","fork":false,"url":"https://api.github.com/repos/less/less.js","forks_url":"https://api.github.com/repos/less/less.js/forks","keys_url":"https://api.github.com/repos/less/less.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/less/less.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/less/less.js/teams","hooks_url":"https://api.github.com/repos/less/less.js/hooks","issue_events_url":"https://api.github.com/repos/less/less.js/issues/events{/number}","events_url":"https://api.github.com/repos/less/less.js/events","assignees_url":"https://api.github.com/repos/less/less.js/assignees{/user}","branches_url":"https://api.github.com/repos/less/less.js/branches{/branch}","tags_url":"https://api.github.com/repos/less/less.js/tags","blobs_url":"https://api.github.com/repos/less/less.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/less/less.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/less/less.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/less/less.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/less/less.js/statuses/{sha}","languages_url":"https://api.github.com/repos/less/less.js/languages","stargazers_url":"https://api.github.com/repos/less/less.js/stargazers","contributors_url":"https://api.github.com/repos/less/less.js/contributors","subscribers_url":"https://api.github.com/repos/less/less.js/subscribers","subscription_url":"https://api.github.com/repos/less/less.js/subscription","commits_url":"https://api.github.com/repos/less/less.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/less/less.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/less/less.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/less/less.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/less/less.js/contents/{+path}","compare_url":"https://api.github.com/repos/less/less.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/less/less.js/merges","archive_url":"https://api.github.com/repos/less/less.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/less/less.js/downloads","issues_url":"https://api.github.com/repos/less/less.js/issues{/number}","pulls_url":"https://api.github.com/repos/less/less.js/pulls{/number}","milestones_url":"https://api.github.com/repos/less/less.js/milestones{/number}","notifications_url":"https://api.github.com/repos/less/less.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/less/less.js/labels{/name}","releases_url":"https://api.github.com/repos/less/less.js/releases{/id}","created_at":"2010-02-20T17:25:38Z","updated_at":"2015-01-30T07:12:40Z","pushed_at":"2015-01-30T07:12:40Z","git_url":"git://github.com/less/less.js.git","ssh_url":"git@github.com:less/less.js.git","clone_url":"https://github.com/less/less.js.git","svn_url":"https://github.com/less/less.js","homepage":"http://lesscss.org","size":31536,"stargazers_count":11740,"watchers_count":11740,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2673,"mirror_url":null,"open_issues_count":172,"forks":2673,"open_issues":172,"watchers":11740,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/less/less.js/pulls/2420"},"html":{"href":"https://github.com/less/less.js/pull/2420"},"issue":{"href":"https://api.github.com/repos/less/less.js/issues/2420"},"comments":{"href":"https://api.github.com/repos/less/less.js/issues/2420/comments"},"review_comments":{"href":"https://api.github.com/repos/less/less.js/pulls/2420/comments"},"review_comment":{"href":"https://api.github.com/repos/less/less.js/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/less/less.js/pulls/2420/commits"},"statuses":{"href":"https://api.github.com/repos/less/less.js/statuses/cf4039625f6bdb50efd2a913f0c19e2f681cb9f8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":3,"additions":1,"deletions":1,"changed_files":1}}