{"action":"created","comment":{"url":"https://api.github.com/repos/atom-community/linter/pulls/comments/40984285","id":40984285,"diff_hunk":"@@ -96,25 +92,35 @@ export class Message extends HTMLElement {\n   }\n   static getMultiLineMessage(message, includeLink) {\n     const container = document.createElement('span')\n-    const messageText = message.text || message.html\n+    const messageEl = document.createElement('linter-multiline-message')\n \n     container.className = 'linter-message-item'\n+    messageEl.setAttribute('title', message.text)\n \n-    if (includeLink && message.filePath) {\n-      container.appendChild(Message.getLink(message))\n-    }\n+    message.text.split(NewLine).forEach(function(line, index) {\n+      if (!line) return\n \n-    const messageEl = document.createElement('linter-multiline-message')\n-\n-    for (let line of messageText.split(NewLine)) {\n-      if (!line) continue\n       const el = document.createElement('linter-message-line')\n       el.textContent = line\n       messageEl.appendChild(el)\n-    }\n+\n+      // Render the link in the \"title\" line.\n+      if (index === 0 && includeLink && message.filePath) {\n+        messageEl.appendChild(Message.getLink(message))\n+      }\n+    })\n \n     container.appendChild(messageEl)\n \n+    messageEl.addEventListener('click', function(e) {","path":"lib/ui/message-element.js","position":52,"original_position":52,"commit_id":"2a4f0f6f9ef01e2d4318ee32695d6046f809d345","original_commit_id":"2a4f0f6f9ef01e2d4318ee32695d6046f809d345","user":{"login":"steelbrain","id":4278113,"avatar_url":"https://avatars.githubusercontent.com/u/4278113?v=3","gravatar_id":"","url":"https://api.github.com/users/steelbrain","html_url":"https://github.com/steelbrain","followers_url":"https://api.github.com/users/steelbrain/followers","following_url":"https://api.github.com/users/steelbrain/following{/other_user}","gists_url":"https://api.github.com/users/steelbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/steelbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steelbrain/subscriptions","organizations_url":"https://api.github.com/users/steelbrain/orgs","repos_url":"https://api.github.com/users/steelbrain/repos","events_url":"https://api.github.com/users/steelbrain/events{/privacy}","received_events_url":"https://api.github.com/users/steelbrain/received_events","type":"User","site_admin":false},"body":"How about you add this listener on line 109? You have the element there, you can assign it to a var, add the listener, then append child. That way you won't have to do the tagName check and it'll work even when we make changes to the element in the future.","created_at":"2015-10-02T01:04:11Z","updated_at":"2015-10-02T01:04:11Z","html_url":"https://github.com/atom-community/linter/pull/917#discussion_r40984285","pull_request_url":"https://api.github.com/repos/atom-community/linter/pulls/917","_links":{"self":{"href":"https://api.github.com/repos/atom-community/linter/pulls/comments/40984285"},"html":{"href":"https://github.com/atom-community/linter/pull/917#discussion_r40984285"},"pull_request":{"href":"https://api.github.com/repos/atom-community/linter/pulls/917"}}},"pull_request":{"url":"https://api.github.com/repos/atom-community/linter/pulls/917","id":46565111,"html_url":"https://github.com/atom-community/linter/pull/917","diff_url":"https://github.com/atom-community/linter/pull/917.diff","patch_url":"https://github.com/atom-community/linter/pull/917.patch","issue_url":"https://api.github.com/repos/atom-community/linter/issues/917","number":917,"state":"open","locked":false,"title":"Enable clicking multiline messages + other tweaks","user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"body":"**Now:**\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1088987/10231183/3d176f48-6836-11e5-84a4-d62931456e61.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1088987/10231219/73ef0db4-6836-11e5-821a-c8be090ce880.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1088987/10231232/7f3baa6a-6836-11e5-9966-92154ee9d864.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1088987/10231245/8e8b8d46-6836-11e5-8bac-51ac2dcbfabc.png)\r\n\r\n**Before:**\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1088987/10231273/b11c75d2-6836-11e5-8dc0-40e47d3725ab.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1088987/10231313/e6b312c8-6836-11e5-8db9-260ddb7fa618.png)\r\n","created_at":"2015-10-01T19:21:14Z","updated_at":"2015-10-02T01:04:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9a590a244901cf8832902ee369eea3000beccfd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atom-community/linter/pulls/917/commits","review_comments_url":"https://api.github.com/repos/atom-community/linter/pulls/917/comments","review_comment_url":"https://api.github.com/repos/atom-community/linter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atom-community/linter/issues/917/comments","statuses_url":"https://api.github.com/repos/atom-community/linter/statuses/2a4f0f6f9ef01e2d4318ee32695d6046f809d345","head":{"label":"blakeembrey:multiline-improvements","ref":"multiline-improvements","sha":"2a4f0f6f9ef01e2d4318ee32695d6046f809d345","user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"repo":{"id":43097526,"name":"linter","full_name":"blakeembrey/linter","owner":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blakeembrey/linter","description":"A Base Linter with Cow Powers","fork":true,"url":"https://api.github.com/repos/blakeembrey/linter","forks_url":"https://api.github.com/repos/blakeembrey/linter/forks","keys_url":"https://api.github.com/repos/blakeembrey/linter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blakeembrey/linter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blakeembrey/linter/teams","hooks_url":"https://api.github.com/repos/blakeembrey/linter/hooks","issue_events_url":"https://api.github.com/repos/blakeembrey/linter/issues/events{/number}","events_url":"https://api.github.com/repos/blakeembrey/linter/events","assignees_url":"https://api.github.com/repos/blakeembrey/linter/assignees{/user}","branches_url":"https://api.github.com/repos/blakeembrey/linter/branches{/branch}","tags_url":"https://api.github.com/repos/blakeembrey/linter/tags","blobs_url":"https://api.github.com/repos/blakeembrey/linter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blakeembrey/linter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blakeembrey/linter/git/refs{/sha}","trees_url":"https://api.github.com/repos/blakeembrey/linter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blakeembrey/linter/statuses/{sha}","languages_url":"https://api.github.com/repos/blakeembrey/linter/languages","stargazers_url":"https://api.github.com/repos/blakeembrey/linter/stargazers","contributors_url":"https://api.github.com/repos/blakeembrey/linter/contributors","subscribers_url":"https://api.github.com/repos/blakeembrey/linter/subscribers","subscription_url":"https://api.github.com/repos/blakeembrey/linter/subscription","commits_url":"https://api.github.com/repos/blakeembrey/linter/commits{/sha}","git_commits_url":"https://api.github.com/repos/blakeembrey/linter/git/commits{/sha}","comments_url":"https://api.github.com/repos/blakeembrey/linter/comments{/number}","issue_comment_url":"https://api.github.com/repos/blakeembrey/linter/issues/comments{/number}","contents_url":"https://api.github.com/repos/blakeembrey/linter/contents/{+path}","compare_url":"https://api.github.com/repos/blakeembrey/linter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blakeembrey/linter/merges","archive_url":"https://api.github.com/repos/blakeembrey/linter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blakeembrey/linter/downloads","issues_url":"https://api.github.com/repos/blakeembrey/linter/issues{/number}","pulls_url":"https://api.github.com/repos/blakeembrey/linter/pulls{/number}","milestones_url":"https://api.github.com/repos/blakeembrey/linter/milestones{/number}","notifications_url":"https://api.github.com/repos/blakeembrey/linter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blakeembrey/linter/labels{/name}","releases_url":"https://api.github.com/repos/blakeembrey/linter/releases{/id}","created_at":"2015-09-24T22:58:37Z","updated_at":"2015-09-24T22:58:38Z","pushed_at":"2015-10-01T19:53:00Z","git_url":"git://github.com/blakeembrey/linter.git","ssh_url":"git@github.com:blakeembrey/linter.git","clone_url":"https://github.com/blakeembrey/linter.git","svn_url":"https://github.com/blakeembrey/linter","homepage":"","size":1331,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"atom-community:master","ref":"master","sha":"f0484a7e3d43713dc98e9354715e95008936df17","user":{"login":"atom-community","id":9948688,"avatar_url":"https://avatars.githubusercontent.com/u/9948688?v=3","gravatar_id":"","url":"https://api.github.com/users/atom-community","html_url":"https://github.com/atom-community","followers_url":"https://api.github.com/users/atom-community/followers","following_url":"https://api.github.com/users/atom-community/following{/other_user}","gists_url":"https://api.github.com/users/atom-community/gists{/gist_id}","starred_url":"https://api.github.com/users/atom-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom-community/subscriptions","organizations_url":"https://api.github.com/users/atom-community/orgs","repos_url":"https://api.github.com/users/atom-community/repos","events_url":"https://api.github.com/users/atom-community/events{/privacy}","received_events_url":"https://api.github.com/users/atom-community/received_events","type":"Organization","site_admin":false},"repo":{"id":18612437,"name":"linter","full_name":"atom-community/linter","owner":{"login":"atom-community","id":9948688,"avatar_url":"https://avatars.githubusercontent.com/u/9948688?v=3","gravatar_id":"","url":"https://api.github.com/users/atom-community","html_url":"https://github.com/atom-community","followers_url":"https://api.github.com/users/atom-community/followers","following_url":"https://api.github.com/users/atom-community/following{/other_user}","gists_url":"https://api.github.com/users/atom-community/gists{/gist_id}","starred_url":"https://api.github.com/users/atom-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom-community/subscriptions","organizations_url":"https://api.github.com/users/atom-community/orgs","repos_url":"https://api.github.com/users/atom-community/repos","events_url":"https://api.github.com/users/atom-community/events{/privacy}","received_events_url":"https://api.github.com/users/atom-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom-community/linter","description":"A Base Linter with Cow Powers","fork":false,"url":"https://api.github.com/repos/atom-community/linter","forks_url":"https://api.github.com/repos/atom-community/linter/forks","keys_url":"https://api.github.com/repos/atom-community/linter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom-community/linter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom-community/linter/teams","hooks_url":"https://api.github.com/repos/atom-community/linter/hooks","issue_events_url":"https://api.github.com/repos/atom-community/linter/issues/events{/number}","events_url":"https://api.github.com/repos/atom-community/linter/events","assignees_url":"https://api.github.com/repos/atom-community/linter/assignees{/user}","branches_url":"https://api.github.com/repos/atom-community/linter/branches{/branch}","tags_url":"https://api.github.com/repos/atom-community/linter/tags","blobs_url":"https://api.github.com/repos/atom-community/linter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom-community/linter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom-community/linter/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom-community/linter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom-community/linter/statuses/{sha}","languages_url":"https://api.github.com/repos/atom-community/linter/languages","stargazers_url":"https://api.github.com/repos/atom-community/linter/stargazers","contributors_url":"https://api.github.com/repos/atom-community/linter/contributors","subscribers_url":"https://api.github.com/repos/atom-community/linter/subscribers","subscription_url":"https://api.github.com/repos/atom-community/linter/subscription","commits_url":"https://api.github.com/repos/atom-community/linter/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom-community/linter/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom-community/linter/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom-community/linter/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom-community/linter/contents/{+path}","compare_url":"https://api.github.com/repos/atom-community/linter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom-community/linter/merges","archive_url":"https://api.github.com/repos/atom-community/linter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom-community/linter/downloads","issues_url":"https://api.github.com/repos/atom-community/linter/issues{/number}","pulls_url":"https://api.github.com/repos/atom-community/linter/pulls{/number}","milestones_url":"https://api.github.com/repos/atom-community/linter/milestones{/number}","notifications_url":"https://api.github.com/repos/atom-community/linter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom-community/linter/labels{/name}","releases_url":"https://api.github.com/repos/atom-community/linter/releases{/id}","created_at":"2014-04-09T20:39:52Z","updated_at":"2015-10-01T21:33:10Z","pushed_at":"2015-10-01T19:53:01Z","git_url":"git://github.com/atom-community/linter.git","ssh_url":"git@github.com:atom-community/linter.git","clone_url":"https://github.com/atom-community/linter.git","svn_url":"https://github.com/atom-community/linter","homepage":"","size":4706,"stargazers_count":397,"watchers_count":397,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"open_issues_count":27,"forks":106,"open_issues":27,"watchers":397,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom-community/linter/pulls/917"},"html":{"href":"https://github.com/atom-community/linter/pull/917"},"issue":{"href":"https://api.github.com/repos/atom-community/linter/issues/917"},"comments":{"href":"https://api.github.com/repos/atom-community/linter/issues/917/comments"},"review_comments":{"href":"https://api.github.com/repos/atom-community/linter/pulls/917/comments"},"review_comment":{"href":"https://api.github.com/repos/atom-community/linter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atom-community/linter/pulls/917/commits"},"statuses":{"href":"https://api.github.com/repos/atom-community/linter/statuses/2a4f0f6f9ef01e2d4318ee32695d6046f809d345"}}}}