{"action":"created","issue":{"url":"https://api.github.com/repos/mobiata/twine/issues/106","labels_url":"https://api.github.com/repos/mobiata/twine/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/mobiata/twine/issues/106/comments","events_url":"https://api.github.com/repos/mobiata/twine/issues/106/events","html_url":"https://github.com/mobiata/twine/pull/106","id":119001592,"number":106,"title":"FIX androidify_substitutions numbers multiple simple % characters","user":{"login":"Aaang","id":4800021,"avatar_url":"https://avatars.githubusercontent.com/u/4800021?v=3","gravatar_id":"","url":"https://api.github.com/users/Aaang","html_url":"https://github.com/Aaang","followers_url":"https://api.github.com/users/Aaang/followers","following_url":"https://api.github.com/users/Aaang/following{/other_user}","gists_url":"https://api.github.com/users/Aaang/gists{/gist_id}","starred_url":"https://api.github.com/users/Aaang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aaang/subscriptions","organizations_url":"https://api.github.com/users/Aaang/orgs","repos_url":"https://api.github.com/users/Aaang/repos","events_url":"https://api.github.com/users/Aaang/events{/privacy}","received_events_url":"https://api.github.com/users/Aaang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-26T09:10:09Z","updated_at":"2015-11-26T13:27:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mobiata/twine/pulls/106","html_url":"https://github.com/mobiata/twine/pull/106","diff_url":"https://github.com/mobiata/twine/pull/106.diff","patch_url":"https://github.com/mobiata/twine/pull/106.patch"},"body":"Hi!\r\n\r\nI've discovered this bug when \"androidifying\" strings. The string \"Lorem ipsum **%** dolor sit **%** amet\" resulted in the string \"Lorem ipsum **%1$** dolor sit **%2$** amet\", even though those are simple % characters and shouldn't be treated as substitutions.\r\n\r\nI've added the additional check for the normally used placeholders *d* (decimal) and *s* (string), the script really only detects valid substitutions."},"comment":{"url":"https://api.github.com/repos/mobiata/twine/issues/comments/159911649","html_url":"https://github.com/mobiata/twine/pull/106#issuecomment-159911649","issue_url":"https://api.github.com/repos/mobiata/twine/issues/106","id":159911649,"user":{"login":"kenji21","id":1105089,"avatar_url":"https://avatars.githubusercontent.com/u/1105089?v=3","gravatar_id":"","url":"https://api.github.com/users/kenji21","html_url":"https://github.com/kenji21","followers_url":"https://api.github.com/users/kenji21/followers","following_url":"https://api.github.com/users/kenji21/following{/other_user}","gists_url":"https://api.github.com/users/kenji21/gists{/gist_id}","starred_url":"https://api.github.com/users/kenji21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenji21/subscriptions","organizations_url":"https://api.github.com/users/kenji21/orgs","repos_url":"https://api.github.com/users/kenji21/repos","events_url":"https://api.github.com/users/kenji21/events{/privacy}","received_events_url":"https://api.github.com/users/kenji21/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T13:27:54Z","updated_at":"2015-11-26T13:27:54Z","body":"Just need to take care to use %% if string is used for stringWithFormat: and use only one % if string is directly used in a label."}}