mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-21 03:11:40 +08:00
remove space after comma and colon
This commit is contained in:
parent
28cc18cbdf
commit
c7fbcb5789
@ -24,7 +24,7 @@ info_json_keys = set()
|
||||
|
||||
def info_json_dumps(data):
|
||||
"""encode data into json string, but swap single and double quotes to reduce escaping issues"""
|
||||
return json.dumps(data, ensure_ascii=False).translate(quote_swap)
|
||||
return json.dumps(data, ensure_ascii=False, separators=(',', ':')).translate(quote_swap)
|
||||
|
||||
|
||||
def info_json_loads(info_json):
|
||||
|
Loading…
Reference in New Issue
Block a user