This commit is contained in:
Louis 2024-08-31 07:23:23 +08:00 committed by GitHub
commit 068a77e1cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -79,12 +79,12 @@ class PrettyJsonBaseCommand:
replacement = replacement + item
if item == '}':
if index != len(items)-1 and items[index+1] != "}":
replacement = replacement + ','
replacement = replacement + ', '
else:
replacement = replacement + item
if index != len(items)-1:
if items[index+1] != '}':
replacement = replacement + ','
replacement = replacement + ', '
replacement = replacement + ']'
if len(replacement) <= settings.get("max_arrays_line_length", 120):