From e75f21dc8f0e66b3d87c4c19b3fcb8f89d9c3acd Mon Sep 17 00:00:00 2001 From: David Majda Date: Thu, 2 Apr 2015 14:41:47 +0200 Subject: [PATCH] Don't indent empty lines when creating browser version This prevents having lines with nothing but 4 spaces in the output. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 09b55e0..8c270a9 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,7 @@ browser: for module in $(MODULES); do \ echo " modules.define(\"$$module\", function(module, require) {" >> $(BROWSER_FILE_DEV); \ - sed -e 's/^/ /' lib/$$module.js >> $(BROWSER_FILE_DEV); \ + sed -e 's/^\(..*\)$$/ \1/' lib/$$module.js >> $(BROWSER_FILE_DEV); \ echo ' });' >> $(BROWSER_FILE_DEV); \ echo '' >> $(BROWSER_FILE_DEV); \ done