From a93996e0bf718d79d50b0becdf0469b1715d998b Mon Sep 17 00:00:00 2001 From: smihica Date: Wed, 15 May 2013 00:41:05 +0900 Subject: Supporting HTML-Snippents phase1: Cleaned config-file and Supported html default attributes. --- tools/json2hash | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/json2hash') diff --git a/tools/json2hash b/tools/json2hash index 0accbcd..8dbe9ae 100755 --- a/tools/json2hash +++ b/tools/json2hash @@ -37,6 +37,8 @@ class Processor(object): self._print(v) self.out.write('\n') self.out.write(')\n') + elif _type is bool: + self.out.write('t' if data else 'nil') elif (_type is str or _type is unicode): self.out.write(pystr2elstrexp(data)) else: # number ? -- cgit v1.2.3