diff --git a/orun/js.py b/orun/js.py index 66dd960..b08bf22 100644 --- a/orun/js.py +++ b/orun/js.py @@ -19,10 +19,10 @@ class FuncWithParams: self.params = params def list2extjs(l): - return '[\n%s\n]' % ',\n'.join([encode(v) for v in l]) + return '[ %s ]' % ', '.join([encode(v) for v in l]) def dict2extjs(d): - return '{\n%s\n}' % ',\n'.join('%s: %s' % (k, encode(v)) for k,v in d.items()) + return '{ %s }' % ', '.join('%s: %s' % (k, encode(v)) for k,v in d.items()) def encode(o):