Skip to content

💫 Toolkit to help you get started with SDD or any other process!

fix: add trailing newline to init-options.json output (#3509)

Vincent Leed83b8d118814
diff --git a/src/specify_cli/_init_options.py b/src/specify_cli/_init_options.py
index 6acf4a000..dd225d825 100644
--- a/src/specify_cli/_init_options.py
+++ b/src/specify_cli/_init_options.py
@@ -14,7 +14,7 @@ def save_init_options(project_path: Path, options: dict[str, Any]) -> None:
dest = project_path / INIT_OPTIONS_FILE
dest.parent.mkdir(parents=True, exist_ok=True)
dest.write_text(
- json.dumps(options, indent=2, sort_keys=True, ensure_ascii=False),
+ json.dumps(options, indent=2, sort_keys=True, ensure_ascii=False) + "\n",
encoding="utf-8",
)