Formatted content includes extra newline when writing to stdout #368

Closed
opened 2025-12-30 01:23:54 +01:00 by adam · 0 comments
Owner

Originally created by @bioball on GitHub (Dec 5, 2025).

This code:

echo "foo = 1" | pkl format - | jq -Rs .

Prints:

"foo = 1\n\n"

This only happens when writing to stdout.

Originally created by @bioball on GitHub (Dec 5, 2025). This code: ``` echo "foo = 1" | pkl format - | jq -Rs . ``` Prints: ```json "foo = 1\n\n" ``` This only happens when writing to stdout.
adam added the bug label 2025-12-30 01:23:54 +01:00
adam closed this issue 2025-12-30 01:23:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#368