make sure to remove trivial whitespace

This commit is contained in:
Alon Zakai 2013-03-09 10:10:29 -08:00
Родитель 74a855a0d5
Коммит 99ac7e40fe
1 изменённых файлов: 4 добавлений и 5 удалений

9
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':