Spline UI fixups for 2024
Change-Id: Ibdfc060cc0ad6c2875712f2a762111631e9428ec
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/frc971/control_loops/python/path_edit.py b/frc971/control_loops/python/path_edit.py
index 1659e55..0cd41cb 100755
--- a/frc971/control_loops/python/path_edit.py
+++ b/frc971/control_loops/python/path_edit.py
@@ -311,7 +311,8 @@
file = filename.with_suffix(f".{index}.json")
print(f" {file.relative_to(export_folder)}")
with open(file, mode='w') as points_file:
- json.dump(multispline.toJsonObject(), points_file)
+ # Indent to make the file actually readable
+ json.dump(multispline.toJsonObject(), points_file, indent=4)
def import_json(self, file_name):
# Abort place mode