From 01f5ce6b89ad436ab39a9b9b6c1aba7fc5b8da0b Mon Sep 17 00:00:00 2001 From: kazu69 Date: Sun, 8 Nov 2015 22:46:33 +0900 Subject: [PATCH 1/2] package.json --- tasks/lib/inlinehint.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/lib/inlinehint.js b/tasks/lib/inlinehint.js index 39344b9..dd957e6 100644 --- a/tasks/lib/inlinehint.js +++ b/tasks/lib/inlinehint.js @@ -37,7 +37,7 @@ function removeTags(src, ignores) { lines[i] = ''; } else if(stops) { - lines[i] = ''; + if(tagSection) { lines[i] = ''; } tagSection = false; } @@ -66,7 +66,6 @@ function createTemporaryFiles(files, ignores, patterns) { if(ignores) source = removeTags(source, ignores); if(patterns) source = removePatterns(source, patterns); - if (/^\s*$/.test(source)) return; fs.writeFileSync(tempFile, source); From c989865007c2a0d2d972565d19589caacb7144bf Mon Sep 17 00:00:00 2001 From: kazu69 Date: Sun, 8 Nov 2015 22:46:47 +0900 Subject: [PATCH 2/2] bump up version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a07665..9d96dde 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "grunt-htmlhint-inline", "description": "Grunt plugin for linting inline html", - "version": "0.1.2", + "version": "0.1.3", "homepage": "https://github.com/kazu69/grunt-htmlhint-inline", "main": "tasks/htmlhint-inline.js", "author": {