Skip to content

Commit

Permalink
Indent/sort the JSON for readability and stability
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Dec 14, 2023
1 parent 4d59927 commit 026458a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bikeshed/stylescript/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def toElement(self) -> t.ElementT:
text = f"/* Boilerplate: script-{self.name} */\n"
if self.data:
for dataName, dataJSON in self.data.items():
text += f"let {dataName} = {json.dumps(dataJSON)};\n"
text += f"let {dataName} = {json.dumps(dataJSON, sort_keys=True, indent=1)};\n"
text += "\n"
text += self.text
if not text.endswith("\n"):
Expand Down

0 comments on commit 026458a

Please sign in to comment.