Add a newline when creating versions.json
What does this MR do and why?
Addresses !705 (comment 2508327039) and adds a newline to versions.json when created.
Newlines matter because:
- Unix convention - The POSIX standard expects text files to end with a newline character
- Command-line tools - Many CLI tools expect files to end with newlines and might behave unexpectedly without them
- Git compatibility - Git specifically warns about files that don't end with newlines
- Consistency - It makes diffs cleaner and provides consistent behavior when concatenating files
Suggested by Claude with
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Configure a local GitLab Docs environment.
- Check out this branch.
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.