Skip to content

Commit a3ddae9

Browse files
committed
removed empty lines from code in examples
1 parent 51fbb41 commit a3ddae9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/template-common.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function(template, baseDir, stdout, prefix) {
2929
match = match.substr(2 + (prefix ? prefix.length+1 : 0), match.length - 4 - (prefix ? prefix.length+1 : 0));
3030
if(match === "stdout")
3131
return stdout;
32-
return fs.readFileSync(path.join(baseDir, match), "utf-8");
32+
return fs.readFileSync(path.join(baseDir, match), "utf-8").replace(/[\r\n]*$/, "");
3333
}).replace(cwd, ".").replace(webpack, "(webpack)").replace(webpackParent, "(webpack)/~");
3434

3535
}

0 commit comments

Comments
 (0)