diff --git a/lib/less/index.js b/lib/less/index.js index 13d675a8..821a0644 100644 --- a/lib/less/index.js +++ b/lib/less/index.js @@ -60,7 +60,7 @@ var less = { if (typeof(extract[2]) === 'string') { error.push(stylize((ctx.line + 1) + ' ' + extract[2], 'grey')); } - error = error.join('\n') + '\033[0m\n'; + error = error.join('\n') + stylize('', 'reset') + '\n'; message += stylize(ctx.type + 'Error: ' + ctx.message, 'red'); ctx.filename && (message += stylize(' in ', 'red') + ctx.filename + @@ -138,6 +138,7 @@ for (var k in less) { exports[k] = less[k] } // Stylize a string function stylize(str, style) { var styles = { + 'reset' : [0, 0], 'bold' : [1, 22], 'inverse' : [7, 27], 'underline' : [4, 24], diff --git a/test/less-test.js b/test/less-test.js index 8798bb9d..806fe1d0 100644 --- a/test/less-test.js +++ b/test/less-test.js @@ -70,6 +70,7 @@ function toCSS(path, callback) { // Stylize a string function stylize(str, style) { var styles = { + 'reset' : [0, 0], 'bold' : [1, 22], 'inverse' : [7, 27], 'underline' : [4, 24],