{"action":"created","issue":{"url":"https://api.github.com/repos/Tunaki/chatexchange/issues/4","repository_url":"https://api.github.com/repos/Tunaki/chatexchange","labels_url":"https://api.github.com/repos/Tunaki/chatexchange/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Tunaki/chatexchange/issues/4/comments","events_url":"https://api.github.com/repos/Tunaki/chatexchange/issues/4/events","html_url":"https://github.com/Tunaki/chatexchange/issues/4","id":248429235,"number":4,"title":"Plain message has been wrapped","user":{"login":"jdd-software","id":17313034,"avatar_url":"https://avatars1.githubusercontent.com/u/17313034?v=4","gravatar_id":"","url":"https://api.github.com/users/jdd-software","html_url":"https://github.com/jdd-software","followers_url":"https://api.github.com/users/jdd-software/followers","following_url":"https://api.github.com/users/jdd-software/following{/other_user}","gists_url":"https://api.github.com/users/jdd-software/gists{/gist_id}","starred_url":"https://api.github.com/users/jdd-software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdd-software/subscriptions","organizations_url":"https://api.github.com/users/jdd-software/orgs","repos_url":"https://api.github.com/users/jdd-software/repos","events_url":"https://api.github.com/users/jdd-software/events{/privacy}","received_events_url":"https://api.github.com/users/jdd-software/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-07T14:29:18Z","updated_at":"2017-08-07T17:36:38Z","closed_at":"2017-08-07T17:19:24Z","body":"Problem retrieving plain message after SE change of response\r\n\r\nSee:\r\n\r\nhttps://chat.stackoverflow.com/transcript/message/38538245#38538245\r\n\r\nThe code that needs to be changed is here:\r\n\r\nhttps://github.com/Tunaki/chatexchange/blob/master/src/main/java/fr/tunaki/stackoverflow/chat/Room.java#L504\r\n\r\nIt should be something similar to:\r\n\r\n```\r\nElements ms = documentHistory.select (\".message-source\");\r\nString plainContent = ms.get(0).ownText();\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Tunaki/chatexchange/issues/comments/320729560","html_url":"https://github.com/Tunaki/chatexchange/issues/4#issuecomment-320729560","issue_url":"https://api.github.com/repos/Tunaki/chatexchange/issues/4","id":320729560,"user":{"login":"Tunaki","id":2684685,"avatar_url":"https://avatars0.githubusercontent.com/u/2684685?v=4","gravatar_id":"","url":"https://api.github.com/users/Tunaki","html_url":"https://github.com/Tunaki","followers_url":"https://api.github.com/users/Tunaki/followers","following_url":"https://api.github.com/users/Tunaki/following{/other_user}","gists_url":"https://api.github.com/users/Tunaki/gists{/gist_id}","starred_url":"https://api.github.com/users/Tunaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tunaki/subscriptions","organizations_url":"https://api.github.com/users/Tunaki/orgs","repos_url":"https://api.github.com/users/Tunaki/repos","events_url":"https://api.github.com/users/Tunaki/events{/privacy}","received_events_url":"https://api.github.com/users/Tunaki/received_events","type":"User","site_admin":false},"created_at":"2017-08-07T17:36:38Z","updated_at":"2017-08-07T17:36:38Z","body":"`.get(0)` would return the first line in the message history, which corresponds to the rendered output on screen. It would be the equivalent of `getContent()`. On the other hand, `getPlainContent()` returns the Markdown source ([javadoc](https://github.com/Tunaki/chatexchange/blob/95bfed767b93d161d7a1859e8f4cf820073a4c0e/src/main/java/fr/tunaki/stackoverflow/chat/Message.java#L54-L73), which should show in the IDE as well once downloaded)."}}
{"actor":{"display_login":"Tunaki"}}