diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-09 10:10:29 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-09 10:10:29 -0800 |
commit | 99ac7e40feb2739edfecd0c3f962ec9f666607f4 (patch) | |
tree | 75f55fecbc7cd1bc291aaa392c3af13f4f71747b | |
parent | 74a855a0d5a8d1708f47e6531a22ca6ae3f8f76e (diff) |
make sure to remove trivial whitespace
-rwxr-xr-x | emcc | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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': |