From 29736e5188db9c3493a68be7798f09d7e9cea8f3 Mon Sep 17 00:00:00 2001 From: inpos Date: Thu, 9 Aug 2018 15:03:12 +0300 Subject: [PATCH] pretty output from convertor --- orun/js.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orun/js.py b/orun/js.py index 7f63667..a2d6449 100644 --- a/orun/js.py +++ b/orun/js.py @@ -19,10 +19,10 @@ class FuncWithParams: self.params = params def list2extjs(l): - return '[ %s ]' % ', '.join([encode(v) for v in l]) + return '[\n%s\n]' % ',\n'.join([encode(v) for v in l]) def dict2extjs(d): - return '{ %s }' % ', '.join('%s: %s' % (k, encode(v)) for k,v in d.items()) + return '{\n%s\n}' % ',\n'.join('%s: %s' % (k, encode(v)) for k,v in d.items()) def encode(o):