{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/zulip/issues/653","repository_url":"https://api.github.com/repos/zulip/zulip","labels_url":"https://api.github.com/repos/zulip/zulip/issues/653/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/653/comments","events_url":"https://api.github.com/repos/zulip/zulip/issues/653/events","html_url":"https://github.com/zulip/zulip/pull/653","id":147572010,"number":653,"title":"Adding frontend handlebar function nl2br to translate new lines into br tags","user":{"login":"chapmanc","id":6537530,"avatar_url":"https://avatars.githubusercontent.com/u/6537530?v=3","gravatar_id":"","url":"https://api.github.com/users/chapmanc","html_url":"https://github.com/chapmanc","followers_url":"https://api.github.com/users/chapmanc/followers","following_url":"https://api.github.com/users/chapmanc/following{/other_user}","gists_url":"https://api.github.com/users/chapmanc/gists{/gist_id}","starred_url":"https://api.github.com/users/chapmanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapmanc/subscriptions","organizations_url":"https://api.github.com/users/chapmanc/orgs","repos_url":"https://api.github.com/users/chapmanc/repos","events_url":"https://api.github.com/users/chapmanc/events{/privacy}","received_events_url":"https://api.github.com/users/chapmanc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T22:18:17Z","updated_at":"2016-04-11T22:18:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zulip/zulip/pulls/653","html_url":"https://github.com/zulip/zulip/pull/653","diff_url":"https://github.com/zulip/zulip/pull/653.diff","patch_url":"https://github.com/zulip/zulip/pull/653.patch"},"body":"This is due to the often annoying behavior where new lines appear to be truncated when in reality the markdown editor translates multiple newlines into one newline within a message. Unfortunately it does not convert it to a newline. Instead of modifying the markdown editor which would be non-trivial, a stop-gap for the time being is to add a handlebar function which will translate strings with newlines into strings with br tags. Updated the tests to include the handlebars dependencies so they don't crash. Passes all tests."},"comment":{"url":"https://api.github.com/repos/zulip/zulip/issues/comments/208590316","html_url":"https://github.com/zulip/zulip/pull/653#issuecomment-208590316","issue_url":"https://api.github.com/repos/zulip/zulip/issues/653","id":208590316,"user":{"login":"smarx","id":35551,"avatar_url":"https://avatars.githubusercontent.com/u/35551?v=3","gravatar_id":"","url":"https://api.github.com/users/smarx","html_url":"https://github.com/smarx","followers_url":"https://api.github.com/users/smarx/followers","following_url":"https://api.github.com/users/smarx/following{/other_user}","gists_url":"https://api.github.com/users/smarx/gists{/gist_id}","starred_url":"https://api.github.com/users/smarx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarx/subscriptions","organizations_url":"https://api.github.com/users/smarx/orgs","repos_url":"https://api.github.com/users/smarx/repos","events_url":"https://api.github.com/users/smarx/events{/privacy}","received_events_url":"https://api.github.com/users/smarx/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T22:18:19Z","updated_at":"2016-04-11T22:18:19Z","body":"*Automated message from Dropbox CLA bot*\n\n@chapmanc, it looks like you've already signed the Dropbox CLA. Thanks!"}}