{"action":"created","comment":{"url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/comments/47975490","id":47975490,"diff_hunk":"@@ -41,7 +42,7 @@ module.exports = function (opts) {\n           self.push(new gutil.File({\n             // Name: id or tag + index.\n             path: file.path + \"-\" + (el.attribs.id || el.tagName + \"-\" + i),\n-            contents: new Buffer(el.children[0].data)\n+            contents: new Buffer(trim.left(el.children[0].data))","path":"html-extract.js","position":13,"original_position":13,"commit_id":"9cee7b9efed34cf453374d789830c588bc047814","original_commit_id":"9cee7b9efed34cf453374d789830c588bc047814","user":{"login":"robdodson","id":1066253,"avatar_url":"https://avatars.githubusercontent.com/u/1066253?v=3","gravatar_id":"","url":"https://api.github.com/users/robdodson","html_url":"https://github.com/robdodson","followers_url":"https://api.github.com/users/robdodson/followers","following_url":"https://api.github.com/users/robdodson/following{/other_user}","gists_url":"https://api.github.com/users/robdodson/gists{/gist_id}","starred_url":"https://api.github.com/users/robdodson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robdodson/subscriptions","organizations_url":"https://api.github.com/users/robdodson/orgs","repos_url":"https://api.github.com/users/robdodson/repos","events_url":"https://api.github.com/users/robdodson/events{/privacy}","received_events_url":"https://api.github.com/users/robdodson/received_events","type":"User","site_admin":false},"body":"Yeah to be accurate it'd be good if we knew the indentation level of the JS coming out of the script element. I didn't know a quick way to do that though. Does cheerio give indentation level?","created_at":"2015-12-17T23:16:35Z","updated_at":"2015-12-17T23:16:35Z","html_url":"https://github.com/FormidableLabs/gulp-html-extract/pull/6#discussion_r47975490","pull_request_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/comments/47975490"},"html":{"href":"https://github.com/FormidableLabs/gulp-html-extract/pull/6#discussion_r47975490"},"pull_request":{"href":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/6","id":54032362,"html_url":"https://github.com/FormidableLabs/gulp-html-extract/pull/6","diff_url":"https://github.com/FormidableLabs/gulp-html-extract/pull/6.diff","patch_url":"https://github.com/FormidableLabs/gulp-html-extract/pull/6.patch","issue_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/6","number":6,"state":"open","locked":false,"title":"Trim whitespace","user":{"login":"robdodson","id":1066253,"avatar_url":"https://avatars.githubusercontent.com/u/1066253?v=3","gravatar_id":"","url":"https://api.github.com/users/robdodson","html_url":"https://github.com/robdodson","followers_url":"https://api.github.com/users/robdodson/followers","following_url":"https://api.github.com/users/robdodson/following{/other_user}","gists_url":"https://api.github.com/users/robdodson/gists{/gist_id}","starred_url":"https://api.github.com/users/robdodson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robdodson/subscriptions","organizations_url":"https://api.github.com/users/robdodson/orgs","repos_url":"https://api.github.com/users/robdodson/repos","events_url":"https://api.github.com/users/robdodson/events{/privacy}","received_events_url":"https://api.github.com/users/robdodson/received_events","type":"User","site_admin":false},"body":"We're using `gulp-html-extract` in [Polymer Starter Kit](https://github.com/PolymerElements/polymer-starter-kit) but noticed that the extracted js leaves in all indentation from the html document, causing JSHint's `indent` rules to always fail. This PR attempts to fix that by stripping out all whitespace on the left-hand side. Hopefully this still preserves any trailing whitespace on the right which would be an actual JSHint error.","created_at":"2015-12-17T21:13:13Z","updated_at":"2015-12-17T23:16:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e889cbc23dfb067cdd985cd1652d7de9c877c27","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/6/commits","review_comments_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/6/comments","review_comment_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/6/comments","statuses_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/statuses/9cee7b9efed34cf453374d789830c588bc047814","head":{"label":"robdodson:trim-whitespace","ref":"trim-whitespace","sha":"9cee7b9efed34cf453374d789830c588bc047814","user":{"login":"robdodson","id":1066253,"avatar_url":"https://avatars.githubusercontent.com/u/1066253?v=3","gravatar_id":"","url":"https://api.github.com/users/robdodson","html_url":"https://github.com/robdodson","followers_url":"https://api.github.com/users/robdodson/followers","following_url":"https://api.github.com/users/robdodson/following{/other_user}","gists_url":"https://api.github.com/users/robdodson/gists{/gist_id}","starred_url":"https://api.github.com/users/robdodson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robdodson/subscriptions","organizations_url":"https://api.github.com/users/robdodson/orgs","repos_url":"https://api.github.com/users/robdodson/repos","events_url":"https://api.github.com/users/robdodson/events{/privacy}","received_events_url":"https://api.github.com/users/robdodson/received_events","type":"User","site_admin":false},"repo":{"id":48197981,"name":"gulp-html-extract","full_name":"robdodson/gulp-html-extract","owner":{"login":"robdodson","id":1066253,"avatar_url":"https://avatars.githubusercontent.com/u/1066253?v=3","gravatar_id":"","url":"https://api.github.com/users/robdodson","html_url":"https://github.com/robdodson","followers_url":"https://api.github.com/users/robdodson/followers","following_url":"https://api.github.com/users/robdodson/following{/other_user}","gists_url":"https://api.github.com/users/robdodson/gists{/gist_id}","starred_url":"https://api.github.com/users/robdodson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robdodson/subscriptions","organizations_url":"https://api.github.com/users/robdodson/orgs","repos_url":"https://api.github.com/users/robdodson/repos","events_url":"https://api.github.com/users/robdodson/events{/privacy}","received_events_url":"https://api.github.com/users/robdodson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robdodson/gulp-html-extract","description":"Extract HTML text in your gulp pipeline.","fork":true,"url":"https://api.github.com/repos/robdodson/gulp-html-extract","forks_url":"https://api.github.com/repos/robdodson/gulp-html-extract/forks","keys_url":"https://api.github.com/repos/robdodson/gulp-html-extract/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robdodson/gulp-html-extract/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robdodson/gulp-html-extract/teams","hooks_url":"https://api.github.com/repos/robdodson/gulp-html-extract/hooks","issue_events_url":"https://api.github.com/repos/robdodson/gulp-html-extract/issues/events{/number}","events_url":"https://api.github.com/repos/robdodson/gulp-html-extract/events","assignees_url":"https://api.github.com/repos/robdodson/gulp-html-extract/assignees{/user}","branches_url":"https://api.github.com/repos/robdodson/gulp-html-extract/branches{/branch}","tags_url":"https://api.github.com/repos/robdodson/gulp-html-extract/tags","blobs_url":"https://api.github.com/repos/robdodson/gulp-html-extract/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robdodson/gulp-html-extract/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robdodson/gulp-html-extract/git/refs{/sha}","trees_url":"https://api.github.com/repos/robdodson/gulp-html-extract/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robdodson/gulp-html-extract/statuses/{sha}","languages_url":"https://api.github.com/repos/robdodson/gulp-html-extract/languages","stargazers_url":"https://api.github.com/repos/robdodson/gulp-html-extract/stargazers","contributors_url":"https://api.github.com/repos/robdodson/gulp-html-extract/contributors","subscribers_url":"https://api.github.com/repos/robdodson/gulp-html-extract/subscribers","subscription_url":"https://api.github.com/repos/robdodson/gulp-html-extract/subscription","commits_url":"https://api.github.com/repos/robdodson/gulp-html-extract/commits{/sha}","git_commits_url":"https://api.github.com/repos/robdodson/gulp-html-extract/git/commits{/sha}","comments_url":"https://api.github.com/repos/robdodson/gulp-html-extract/comments{/number}","issue_comment_url":"https://api.github.com/repos/robdodson/gulp-html-extract/issues/comments{/number}","contents_url":"https://api.github.com/repos/robdodson/gulp-html-extract/contents/{+path}","compare_url":"https://api.github.com/repos/robdodson/gulp-html-extract/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robdodson/gulp-html-extract/merges","archive_url":"https://api.github.com/repos/robdodson/gulp-html-extract/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robdodson/gulp-html-extract/downloads","issues_url":"https://api.github.com/repos/robdodson/gulp-html-extract/issues{/number}","pulls_url":"https://api.github.com/repos/robdodson/gulp-html-extract/pulls{/number}","milestones_url":"https://api.github.com/repos/robdodson/gulp-html-extract/milestones{/number}","notifications_url":"https://api.github.com/repos/robdodson/gulp-html-extract/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robdodson/gulp-html-extract/labels{/name}","releases_url":"https://api.github.com/repos/robdodson/gulp-html-extract/releases{/id}","created_at":"2015-12-17T20:59:22Z","updated_at":"2015-12-17T20:59:22Z","pushed_at":"2015-12-17T21:11:24Z","git_url":"git://github.com/robdodson/gulp-html-extract.git","ssh_url":"git@github.com:robdodson/gulp-html-extract.git","clone_url":"https://github.com/robdodson/gulp-html-extract.git","svn_url":"https://github.com/robdodson/gulp-html-extract","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"FormidableLabs:master","ref":"master","sha":"c93ef1c2bacb060be2b63ff6ecfc0c03512fd300","user":{"login":"FormidableLabs","id":5078602,"avatar_url":"https://avatars.githubusercontent.com/u/5078602?v=3","gravatar_id":"","url":"https://api.github.com/users/FormidableLabs","html_url":"https://github.com/FormidableLabs","followers_url":"https://api.github.com/users/FormidableLabs/followers","following_url":"https://api.github.com/users/FormidableLabs/following{/other_user}","gists_url":"https://api.github.com/users/FormidableLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/FormidableLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FormidableLabs/subscriptions","organizations_url":"https://api.github.com/users/FormidableLabs/orgs","repos_url":"https://api.github.com/users/FormidableLabs/repos","events_url":"https://api.github.com/users/FormidableLabs/events{/privacy}","received_events_url":"https://api.github.com/users/FormidableLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":19241189,"name":"gulp-html-extract","full_name":"FormidableLabs/gulp-html-extract","owner":{"login":"FormidableLabs","id":5078602,"avatar_url":"https://avatars.githubusercontent.com/u/5078602?v=3","gravatar_id":"","url":"https://api.github.com/users/FormidableLabs","html_url":"https://github.com/FormidableLabs","followers_url":"https://api.github.com/users/FormidableLabs/followers","following_url":"https://api.github.com/users/FormidableLabs/following{/other_user}","gists_url":"https://api.github.com/users/FormidableLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/FormidableLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FormidableLabs/subscriptions","organizations_url":"https://api.github.com/users/FormidableLabs/orgs","repos_url":"https://api.github.com/users/FormidableLabs/repos","events_url":"https://api.github.com/users/FormidableLabs/events{/privacy}","received_events_url":"https://api.github.com/users/FormidableLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FormidableLabs/gulp-html-extract","description":"Extract HTML text in your gulp pipeline.","fork":false,"url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract","forks_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/forks","keys_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/teams","hooks_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/hooks","issue_events_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/events{/number}","events_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/events","assignees_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/assignees{/user}","branches_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/branches{/branch}","tags_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/tags","blobs_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/git/refs{/sha}","trees_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/statuses/{sha}","languages_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/languages","stargazers_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/stargazers","contributors_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/contributors","subscribers_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/subscribers","subscription_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/subscription","commits_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/commits{/sha}","git_commits_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/git/commits{/sha}","comments_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/comments{/number}","issue_comment_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/comments{/number}","contents_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/contents/{+path}","compare_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/merges","archive_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/downloads","issues_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues{/number}","pulls_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls{/number}","milestones_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/milestones{/number}","notifications_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/labels{/name}","releases_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/releases{/id}","created_at":"2014-04-28T14:20:14Z","updated_at":"2015-09-15T17:25:22Z","pushed_at":"2015-12-17T21:13:13Z","git_url":"git://github.com/FormidableLabs/gulp-html-extract.git","ssh_url":"git@github.com:FormidableLabs/gulp-html-extract.git","clone_url":"https://github.com/FormidableLabs/gulp-html-extract.git","svn_url":"https://github.com/FormidableLabs/gulp-html-extract","homepage":null,"size":188,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/6"},"html":{"href":"https://github.com/FormidableLabs/gulp-html-extract/pull/6"},"issue":{"href":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/6"},"comments":{"href":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/statuses/9cee7b9efed34cf453374d789830c588bc047814"}}}}