Skip to content

Commit

Permalink
fix tab size for jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaniswang committed Mar 29, 2013
1 parent b7cb96a commit c009e39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coverage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/htmlhint.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/rules/jshint.js
Expand Up @@ -16,7 +16,8 @@ HTMLHint.addRule({
if(jsVerify !== undefined && jsOptions !== undefined){
var styleLine = event.line - 1,
styleCol = event.col - 1;
var status = jsVerify(event.raw, jsOptions);
var code = event.raw.replace(/\t/g,' ');
var status = jsVerify(code, jsOptions);
if(status === false){
jsVerify.errors.forEach(function(error){
var line = error.line;
Expand Down

0 comments on commit c009e39

Please sign in to comment.