make sure to remove trivial whitespace
This commit is contained in:
Родитель
74a855a0d5
Коммит
99ac7e40fe
3
emcc
3
emcc
|
@ -1361,8 +1361,7 @@ try:
|
||||||
|
|
||||||
flush_js_optimizer_queue()
|
flush_js_optimizer_queue()
|
||||||
|
|
||||||
if not minify_whitespace:
|
# Remove some trivial whitespace # TODO: do not run when compress has already been done on all parts of the code
|
||||||
# Remove some trivial whitespace
|
|
||||||
src = open(final).read()
|
src = open(final).read()
|
||||||
src = re.sub(r'\n+[ \n]*\n+', '\n', src)
|
src = re.sub(r'\n+[ \n]*\n+', '\n', src)
|
||||||
open(final, 'w').write(src)
|
open(final, 'w').write(src)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче