mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-06 22:02:18 -08:00
remove space after comma and colon
This commit is contained in:
parent
28cc18cbdf
commit
c7fbcb5789
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue