aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-09 10:10:29 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-09 10:10:29 -0800
commit99ac7e40feb2739edfecd0c3f962ec9f666607f4 (patch)
tree75f55fecbc7cd1bc291aaa392c3af13f4f71747b
parent74a855a0d5a8d1708f47e6531a22ca6ae3f8f76e (diff)
make sure to remove trivial whitespace
-rwxr-xr-xemcc9
1 files changed, 4 insertions, 5 deletions
diff --git a/emcc b/emcc
index 035180ac..e8999ceb 100755
--- a/emcc
+++ b/emcc
@@ -1361,11 +1361,10 @@ try:
flush_js_optimizer_queue()
- if not minify_whitespace:
- # Remove some trivial whitespace
- src = open(final).read()
- src = re.sub(r'\n+[ \n]*\n+', '\n', src)
- open(final, 'w').write(src)
+ # Remove some trivial whitespace # TODO: do not run when compress has already been done on all parts of the code
+ src = open(final).read()
+ src = re.sub(r'\n+[ \n]*\n+', '\n', src)
+ open(final, 'w').write(src)
# If we were asked to also generate HTML, do that
if final_suffix == 'html':