From c7fbcb5789378e3130457f97b074cf5d413f7eff Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Tue, 23 Jan 2024 03:44:21 +0900 Subject: [PATCH] remove space after comma and colon --- modules/infotext_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/infotext_utils.py b/modules/infotext_utils.py index ba50ad7b1..386ece4da 100644 --- a/modules/infotext_utils.py +++ b/modules/infotext_utils.py @@ -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):