Original PR: https://github.com/apple/pkl/pull/1350 Author: @bioball Created: 12/5/2025 Status: ✅ Merged Merged: 12/5/2025 Merged by: @bioball
Base: main ← Head: fix-formatter-newline
main
fix-formatter-newline
421f509
2 files changed (+55 additions, -7 deletions)
📝 pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterCommand.kt (+8 -7) ➕ pkl-cli/src/test/kotlin/org/pkl/cli/CliFormatterTest.kt (+47 -0)
pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterCommand.kt
pkl-cli/src/test/kotlin/org/pkl/cli/CliFormatterTest.kt
Fixes an issue where an extra newline is added when writing formatted code to stdout.
Closes https://github.com/apple/pkl/issues/1346
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1350
Author: @bioball
Created: 12/5/2025
Status: ✅ Merged
Merged: 12/5/2025
Merged by: @bioball
Base:
main← Head:fix-formatter-newline📝 Commits (1)
421f509Omit superfluous newline when writing formatted content📊 Changes
2 files changed (+55 additions, -7 deletions)
View changed files
📝
pkl-cli/src/main/kotlin/org/pkl/cli/CliFormatterCommand.kt(+8 -7)➕
pkl-cli/src/test/kotlin/org/pkl/cli/CliFormatterTest.kt(+47 -0)📄 Description
Fixes an issue where an extra newline is added when writing formatted code to stdout.
Closes https://github.com/apple/pkl/issues/1346
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.