{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/7","labels_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/7/comments","events_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/7/events","html_url":"https://github.com/FormidableLabs/gulp-html-extract/pull/7","id":122924431,"number":7,"title":"Add 'strip' option and tests.","user":{"login":"ryan-roemer","id":445557,"avatar_url":"https://avatars.githubusercontent.com/u/445557?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-roemer","html_url":"https://github.com/ryan-roemer","followers_url":"https://api.github.com/users/ryan-roemer/followers","following_url":"https://api.github.com/users/ryan-roemer/following{/other_user}","gists_url":"https://api.github.com/users/ryan-roemer/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-roemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-roemer/subscriptions","organizations_url":"https://api.github.com/users/ryan-roemer/orgs","repos_url":"https://api.github.com/users/ryan-roemer/repos","events_url":"https://api.github.com/users/ryan-roemer/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-roemer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-18T10:37:11Z","updated_at":"2015-12-18T18:06:11Z","closed_at":"2015-12-18T18:02:52Z","pull_request":{"url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/pulls/7","html_url":"https://github.com/FormidableLabs/gulp-html-extract/pull/7","diff_url":"https://github.com/FormidableLabs/gulp-html-extract/pull/7.diff","patch_url":"https://github.com/FormidableLabs/gulp-html-extract/pull/7.patch"},"body":"As an alternative to #6 , I've added a `strip` option to the plugin that applies the heuristic of:\r\n\r\n- Remove all empty lines before first real character.\r\n- Capture whitespace on line of first real char up to the char.\r\n- Remove prefix of that captured indent token up to char on all subsequent\r\n  lines.\r\n- Remove white-space only lines at the very end of the snippet.\r\n\r\nThis PR\r\n\r\n* Adds the `strip` option and tests\r\n* Moves existing tests into describe blocks (apologies for extra diff that entails -- reviewing with [`?w=1`](https://github.com/FormidableLabs/gulp-html-extract/pull/7/files?w=1) should make easier)\r\n* Replaces `gulpfile.js` for command line mocha + eslint (apologies for extra diff here -- the gulp mocha was making failures to hard to diagnose in CI)\r\n\r\n@robdodson -- Does this meet your use case?\r\n"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/comments/165858743","html_url":"https://github.com/FormidableLabs/gulp-html-extract/pull/7#issuecomment-165858743","issue_url":"https://api.github.com/repos/FormidableLabs/gulp-html-extract/issues/7","id":165858743,"user":{"login":"ryan-roemer","id":445557,"avatar_url":"https://avatars.githubusercontent.com/u/445557?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-roemer","html_url":"https://github.com/ryan-roemer","followers_url":"https://api.github.com/users/ryan-roemer/followers","following_url":"https://api.github.com/users/ryan-roemer/following{/other_user}","gists_url":"https://api.github.com/users/ryan-roemer/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-roemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-roemer/subscriptions","organizations_url":"https://api.github.com/users/ryan-roemer/orgs","repos_url":"https://api.github.com/users/ryan-roemer/repos","events_url":"https://api.github.com/users/ryan-roemer/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-roemer/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T18:06:11Z","updated_at":"2015-12-18T18:06:11Z","body":"Released as `gulp-html-extract@0.1.0`"}}