{"action":"created","issue":{"url":"https://api.github.com/repos/Robpol86/colorclass/issues/16","labels_url":"https://api.github.com/repos/Robpol86/colorclass/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Robpol86/colorclass/issues/16/comments","events_url":"https://api.github.com/repos/Robpol86/colorclass/issues/16/events","html_url":"https://github.com/Robpol86/colorclass/issues/16","id":124381139,"number":16,"title":".format() color injection","user":{"login":"ThiefMaster","id":179599,"avatar_url":"https://avatars.githubusercontent.com/u/179599?v=3","gravatar_id":"","url":"https://api.github.com/users/ThiefMaster","html_url":"https://github.com/ThiefMaster","followers_url":"https://api.github.com/users/ThiefMaster/followers","following_url":"https://api.github.com/users/ThiefMaster/following{/other_user}","gists_url":"https://api.github.com/users/ThiefMaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ThiefMaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThiefMaster/subscriptions","organizations_url":"https://api.github.com/users/ThiefMaster/orgs","repos_url":"https://api.github.com/users/ThiefMaster/repos","events_url":"https://api.github.com/users/ThiefMaster/events{/privacy}","received_events_url":"https://api.github.com/users/ThiefMaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-30T18:06:36Z","updated_at":"2015-12-30T18:35:43Z","closed_at":null,"body":"```\r\n>>> print(colorclass.Color('{red}XXX: {/red}{}').format('{green}moo{/green}'))\r\nXXX: moo\r\n```\r\n\r\nExpected: `XXX: {green}moo{/green}` (with `XXX:` in red)\r\nActual: `XXX: moo` (with `XXX:` in red and `moo` in green)\r\n\r\nThis is especially annoying since it means one cannot use the `Color` class without the tag parsing."},"comment":{"url":"https://api.github.com/repos/Robpol86/colorclass/issues/comments/168051101","html_url":"https://github.com/Robpol86/colorclass/issues/16#issuecomment-168051101","issue_url":"https://api.github.com/repos/Robpol86/colorclass/issues/16","id":168051101,"user":{"login":"Robpol86","id":3413339,"avatar_url":"https://avatars.githubusercontent.com/u/3413339?v=3","gravatar_id":"","url":"https://api.github.com/users/Robpol86","html_url":"https://github.com/Robpol86","followers_url":"https://api.github.com/users/Robpol86/followers","following_url":"https://api.github.com/users/Robpol86/following{/other_user}","gists_url":"https://api.github.com/users/Robpol86/gists{/gist_id}","starred_url":"https://api.github.com/users/Robpol86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Robpol86/subscriptions","organizations_url":"https://api.github.com/users/Robpol86/orgs","repos_url":"https://api.github.com/users/Robpol86/repos","events_url":"https://api.github.com/users/Robpol86/events{/privacy}","received_events_url":"https://api.github.com/users/Robpol86/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T18:35:43Z","updated_at":"2015-12-30T18:35:43Z","body":"Hmm, true. I should fix colorclass so you can do something like `.format('{{green}}moo{{/green}}')`, which is what str.format() does."}}