{"action":"created","issue":{"url":"https://api.github.com/repos/hsz/idea-gitignore/issues/155","labels_url":"https://api.github.com/repos/hsz/idea-gitignore/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/hsz/idea-gitignore/issues/155/comments","events_url":"https://api.github.com/repos/hsz/idea-gitignore/issues/155/events","html_url":"https://github.com/hsz/idea-gitignore/issues/155","id":98100429,"number":155,"title":"OSX template containing `\\0` instead of `\\r`","user":{"login":"nicoespeon","id":1094774,"avatar_url":"https://avatars.githubusercontent.com/u/1094774?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoespeon","html_url":"https://github.com/nicoespeon","followers_url":"https://api.github.com/users/nicoespeon/followers","following_url":"https://api.github.com/users/nicoespeon/following{/other_user}","gists_url":"https://api.github.com/users/nicoespeon/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoespeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoespeon/subscriptions","organizations_url":"https://api.github.com/users/nicoespeon/orgs","repos_url":"https://api.github.com/users/nicoespeon/repos","events_url":"https://api.github.com/users/nicoespeon/events{/privacy}","received_events_url":"https://api.github.com/users/nicoespeon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hsz/idea-gitignore/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hsz/idea-gitignore/milestones/2","html_url":"https://github.com/hsz/idea-gitignore/milestones/1.2","labels_url":"https://api.github.com/repos/hsz/idea-gitignore/milestones/2/labels","id":1147281,"number":2,"title":"1.2","description":"","creator":{"login":"hsz","id":108333,"avatar_url":"https://avatars.githubusercontent.com/u/108333?v=3","gravatar_id":"","url":"https://api.github.com/users/hsz","html_url":"https://github.com/hsz","followers_url":"https://api.github.com/users/hsz/followers","following_url":"https://api.github.com/users/hsz/following{/other_user}","gists_url":"https://api.github.com/users/hsz/gists{/gist_id}","starred_url":"https://api.github.com/users/hsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsz/subscriptions","organizations_url":"https://api.github.com/users/hsz/orgs","repos_url":"https://api.github.com/users/hsz/repos","events_url":"https://api.github.com/users/hsz/events{/privacy}","received_events_url":"https://api.github.com/users/hsz/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":8,"state":"open","created_at":"2015-06-03T14:00:05Z","updated_at":"2015-07-30T07:50:59Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-07-30T07:08:28Z","updated_at":"2015-07-30T08:28:53Z","closed_at":null,"body":"Hi there!\r\n\r\nI spotted something that might be wrong with the OSX `.gitgnore` template.\r\n\r\nHere is the generated file I've got:\r\n\r\n```\r\n# Created by .ignore support plugin (hsz.mobi)\r\n\r\n### OSX template\r\n.DS_Store\r\n.AppleDouble\r\n.LSOverride\r\n\r\n# Icon must end with two \\r\r\nIcon\r\n\r\n# Thumbnails\r\n._*\r\n\r\n# Files that might appear in the root of a volume\r\n.DocumentRevisions-V100\r\n.fseventsd\r\n.Spotlight-V100\r\n.TemporaryItems\r\n.Trashes\r\n.VolumeIcon.icns\r\n\r\n# Directories potentially created on remote AFP share\r\n.AppleDB\r\n.AppleDesktop\r\nNetwork Trash Folder\r\nTemporary Items\r\n.apdisk\r\n```\r\n\r\nThe error lies here:\r\n\r\n```\r\n# Icon must end with two \\r\r\nIcon\r\n```\r\n\r\nActually, it seems that there're 2 `\\0` characters instead of 2 `\\r`, which might break things [as I ran into some issues with git-related tools](http://forums.gitup.co/t/unhandled-character-in-gitignore/278).\r\n\r\nI'm not sure it was expected so I'm reporting as it looks like an issue.\r\n\r\nFor comparison, here is the diff with the <http://www.gitignore.io> version (which is on the left):\r\n\r\n![capture d ecran 2015-07-30 a 09 05 02](https://cloud.githubusercontent.com/assets/1094774/8977538/54e0039c-369a-11e5-8ffc-0402ba7544c8.png)\r\n\r\nThanks a lot for your useful plugin by the way :+1: \r\n"},"comment":{"url":"https://api.github.com/repos/hsz/idea-gitignore/issues/comments/126223462","html_url":"https://github.com/hsz/idea-gitignore/issues/155#issuecomment-126223462","issue_url":"https://api.github.com/repos/hsz/idea-gitignore/issues/155","id":126223462,"user":{"login":"nicoespeon","id":1094774,"avatar_url":"https://avatars.githubusercontent.com/u/1094774?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoespeon","html_url":"https://github.com/nicoespeon","followers_url":"https://api.github.com/users/nicoespeon/followers","following_url":"https://api.github.com/users/nicoespeon/following{/other_user}","gists_url":"https://api.github.com/users/nicoespeon/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoespeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoespeon/subscriptions","organizations_url":"https://api.github.com/users/nicoespeon/orgs","repos_url":"https://api.github.com/users/nicoespeon/repos","events_url":"https://api.github.com/users/nicoespeon/events{/privacy}","received_events_url":"https://api.github.com/users/nicoespeon/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T08:28:53Z","updated_at":"2015-07-30T08:28:53Z","body":"Yep, I don't see any workaround neither since there can't be `\\r\\r`. Hence the best solution is removing them as you said :smiley: "}}