{"action":"closed","issue":{"url":"https://api.github.com/repos/mrmans0n/localio/issues/14","labels_url":"https://api.github.com/repos/mrmans0n/localio/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mrmans0n/localio/issues/14/comments","events_url":"https://api.github.com/repos/mrmans0n/localio/issues/14/events","html_url":"https://github.com/mrmans0n/localio/issues/14","id":59478236,"number":14,"title":"Escape Quotes and New Lines","user":{"login":"peterlupu","id":8885490,"avatar_url":"https://avatars.githubusercontent.com/u/8885490?v=3","gravatar_id":"","url":"https://api.github.com/users/peterlupu","html_url":"https://github.com/peterlupu","followers_url":"https://api.github.com/users/peterlupu/followers","following_url":"https://api.github.com/users/peterlupu/following{/other_user}","gists_url":"https://api.github.com/users/peterlupu/gists{/gist_id}","starred_url":"https://api.github.com/users/peterlupu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterlupu/subscriptions","organizations_url":"https://api.github.com/users/peterlupu/orgs","repos_url":"https://api.github.com/users/peterlupu/repos","events_url":"https://api.github.com/users/peterlupu/events{/privacy}","received_events_url":"https://api.github.com/users/peterlupu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T13:01:42Z","updated_at":"2015-03-15T22:55:35Z","closed_at":"2015-03-15T22:55:35Z","body":"Hi, I'm trying to generate files for my iOS app.\r\nI've noticed that double quotes aren't escaped.\r\nAlso, new lines within the translation are untouched, meaning the iOS code has syntax errors.\r\n\r\nSo I've modified the following in the `ios_writer.rb`\r\n\r\n```\r\ntranslation = term.values[lang].gsub('\"', %q(\\\\\\\")).gsub(\"\\n\", \"\\\\n\")\r\n```\r\n\r\nKeep in mind that my Ruby knowledge is limited, so I'd like to know if there's a better way to do this, or if there's no actual bug within the gem and my approach is wrong.\r\n\r\nThank you,\r\nPeter"}}