{"action":"created","issue":{"url":"https://api.github.com/repos/lesshint/lesshint/issues/40","labels_url":"https://api.github.com/repos/lesshint/lesshint/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/lesshint/lesshint/issues/40/comments","events_url":"https://api.github.com/repos/lesshint/lesshint/issues/40/events","html_url":"https://github.com/lesshint/lesshint/issues/40","id":99212741,"number":40,"title":"Lesshint outputs wrong line number","user":{"login":"dishad","id":13590690,"avatar_url":"https://avatars.githubusercontent.com/u/13590690?v=3","gravatar_id":"","url":"https://api.github.com/users/dishad","html_url":"https://github.com/dishad","followers_url":"https://api.github.com/users/dishad/followers","following_url":"https://api.github.com/users/dishad/following{/other_user}","gists_url":"https://api.github.com/users/dishad/gists{/gist_id}","starred_url":"https://api.github.com/users/dishad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dishad/subscriptions","organizations_url":"https://api.github.com/users/dishad/orgs","repos_url":"https://api.github.com/users/dishad/repos","events_url":"https://api.github.com/users/dishad/events{/privacy}","received_events_url":"https://api.github.com/users/dishad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-05T14:06:28Z","updated_at":"2015-08-05T17:15:21Z","closed_at":null,"body":"Following test was done in v0.7.0\r\n\r\n```\r\nh1 {\r\n  width: 100px;\r\n  height: 100px;\r\n  color: #00f;\r\n  background: #000;\r\n  top:10px;\r\n  left: 1000px;\r\n}\r\n```\r\n\r\nThis example Less/CSS file only has the rule `finalNewline` disabled and it reports the following errors:\r\n```test.less: line 7, col 10, hexLength: #00f should be written in the long-form format.```\r\n```test.less: line 9, col 15, hexLength: #000 should be written in the long-form format.```\r\n```test.less: line 11, col 7, spaceAfterPropertyColon: Colon after property name should be followed by one space.```\r\n\r\nAs you can see the errors are not correctly guiding me to the correct line number.\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/lesshint/lesshint/issues/comments/128079030","html_url":"https://github.com/lesshint/lesshint/issues/40#issuecomment-128079030","issue_url":"https://api.github.com/repos/lesshint/lesshint/issues/40","id":128079030,"user":{"login":"jwilsson","id":567607,"avatar_url":"https://avatars.githubusercontent.com/u/567607?v=3","gravatar_id":"","url":"https://api.github.com/users/jwilsson","html_url":"https://github.com/jwilsson","followers_url":"https://api.github.com/users/jwilsson/followers","following_url":"https://api.github.com/users/jwilsson/following{/other_user}","gists_url":"https://api.github.com/users/jwilsson/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilsson/subscriptions","organizations_url":"https://api.github.com/users/jwilsson/orgs","repos_url":"https://api.github.com/users/jwilsson/repos","events_url":"https://api.github.com/users/jwilsson/events{/privacy}","received_events_url":"https://api.github.com/users/jwilsson/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T17:15:21Z","updated_at":"2015-08-05T17:15:21Z","body":"Thanks for the report!\r\n\r\nI've managed to track the problem down to the use of Windows line endings (`\\r\\n`) instead of Unix ones (`\\n`).\r\n\r\nThe real issue seems to lie in our Less parser, [gonzales-pe](https://github.com/tonyganch/gonzales-pe), but I'll add a workaround in our end (we'll probably need it somewhere else)."}}