Use 2-space indent for JSON on HTML versions of /-/ pages

The /-/config, /-/settings, /-/versions and similar pages now render
JSON in their HTML view using 2-space indentation instead of 4.
This commit is contained in:
Claude 2026-05-24 22:18:09 +00:00
commit ef5949f4b2
No known key found for this signature in database

View file

@ -67,7 +67,7 @@ class JsonDataView(BaseView):
context = {
"filename": self.filename,
"data": data,
"data_json": json.dumps(data, indent=4, default=repr),
"data_json": json.dumps(data, indent=2, default=repr),
}
# Add has_debug_permission if this view requires permissions-debug
if self.permission == "permissions-debug":