mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1350] [MERGED] Omit superfluous newline when writing formatted content to stdout #1035
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.