aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-01 20:28:02 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-01 21:24:11 -0700
commit352f3f4f10f11ed00b8b0df714ef93b92a271758 (patch)
treea04c2ba7be36a5622655cb7cb431b22eda8646a3 /emscripten.py
parent812bf5108137accbb808172c2f837847a46db5f9 (diff)
make function table emitting nicer
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index dd67aad7..a6ff7390 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -430,7 +430,7 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None,
Counter.j = 0
def fix_item(item):
Counter.j += 1
- newline = Counter.j % 30 == 1
+ newline = Counter.j % 30 == 29
if item == '0': return bad if not newline else (bad + '\n')
return item if not newline else (item + '\n')
body = ','.join(map(fix_item, body))