Permalink
Browse files

updated call to fs.readFileSync() to return a string rather than a bu…

…ffer. (Thanks to creationix)
  • Loading branch information...
1 parent e54f5ea commit d3d91a82fd12bfbafe7972251d7f315f25528d2c @omni5cience omni5cience committed Dec 16, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Commands/Save to CSS.tmCommand
@@ -13,8 +13,8 @@ var less = require('less');
var less_file = process.env.TM_FILEPATH;
var css_file = less_file.replace(/\.less$/, ".css");
-var input = fs.readFileSync(less_file);
-less.render(input+"", function (e, css) {
+var input = fs.readFileSync(less_file, 'utf8');
+less.render(input, function (e, css) {
if (e) { throw e; }
fs.writeFileSync(css_file, css);
});

0 comments on commit d3d91a8

Please sign in to comment.