squish: Insert a space before ending our wrapper function, in case the module doesn't end with whitespace already

Thu, 27 May 2010 03:59:44 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 27 May 2010 03:59:44 +0100
changeset 58
17121881cbf7
parent 57
db9b079c1d33
child 59
165b36273ce7

squish: Insert a space before ending our wrapper function, in case the module doesn't end with whitespace already

squish.lua file | annotate | diff | comparison | revisions
--- a/squish.lua	Thu May 27 03:58:27 2010 +0100
+++ b/squish.lua	Thu May 27 03:59:44 2010 +0100
@@ -225,7 +225,7 @@
 	if data then
 		f:write("package.preload['", modulename, "'] = (function (...)\n");
 		f:write(data);
-		f:write("end)\n");
+		f:write(" end)\n");
 		if opts.debug then
 			f:write(string.format("package.preload[%q] = ___adjust_chunk(package.preload[%q], %q);\n\n", 
 				modulename, modulename, "@"..path));

mercurial