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:

  1. Unix convention - The POSIX standard expects text files to end with a newline character
  2. Command-line tools - Many CLI tools expect files to end with newlines and might behave unexpectedly without them
  3. Git compatibility - Git specifically warns about files that don't end with newlines
  4. 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.

  1. Configure a local GitLab Docs environment.
  2. 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.

Merge request reports

Loading