{"action":"created","issue":{"url":"https://api.github.com/repos/nijel/weblate/issues/961","labels_url":"https://api.github.com/repos/nijel/weblate/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/nijel/weblate/issues/961/comments","events_url":"https://api.github.com/repos/nijel/weblate/issues/961/events","html_url":"https://github.com/nijel/weblate/issues/961","id":122701405,"number":961,"title":"How do I store multi-line string as singlel-ine strings in .po file?","user":{"login":"chrisk414","id":752887,"avatar_url":"https://avatars.githubusercontent.com/u/752887?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisk414","html_url":"https://github.com/chrisk414","followers_url":"https://api.github.com/users/chrisk414/followers","following_url":"https://api.github.com/users/chrisk414/following{/other_user}","gists_url":"https://api.github.com/users/chrisk414/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisk414/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisk414/subscriptions","organizations_url":"https://api.github.com/users/chrisk414/orgs","repos_url":"https://api.github.com/users/chrisk414/repos","events_url":"https://api.github.com/users/chrisk414/events{/privacy}","received_events_url":"https://api.github.com/users/chrisk414/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nijel/weblate/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-17T10:01:52Z","updated_at":"2015-12-17T10:21:05Z","closed_at":null,"body":"Hi, I have a source .po file with msgstr string with single-line string.\r\nFor example, \r\nmsgid \"test\"\r\nmsgstr \"Hi\\n There!\"\r\n\r\nWeblate will import thin as multi-line string and when I export .po file I get the followings.\r\n\r\nmsgid \"test\"\r\nmsgstr \"\"\r\n\"Hi\\n\"\r\n\"There1\"\r\n\r\nHow do I get back the string in original form? \r\n\r\nThank you very much for your help. (I'm using weblate v2.3)\r\n\r\n-chris\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29202320-how-do-i-store-multi-line-string-as-singlel-ine-strings-in-po-file?utm_campaign=plugin&utm_content=tracker%2F253393&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F253393&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/nijel/weblate/issues/comments/165409228","html_url":"https://github.com/nijel/weblate/issues/961#issuecomment-165409228","issue_url":"https://api.github.com/repos/nijel/weblate/issues/961","id":165409228,"user":{"login":"nijel","id":212189,"avatar_url":"https://avatars.githubusercontent.com/u/212189?v=3","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T10:21:05Z","updated_at":"2015-12-17T10:21:05Z","body":"You can use pre commit hooks to fix this - examples/hook-unwrap-po, see https://docs.weblate.org/en/latest/admin/config.html#pre-commit-scripts"}}