mirror of
https://github.com/simonw/datasette.git
synced 2026-06-01 06:37:02 +02:00
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:
parent
857af9293c
commit
ef5949f4b2
1 changed files with 1 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue