Incorrect formatting of Pkl files that only contain whitespace #370

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 " " | pkl format - | jq -Rs .

Produces:

" \n\n"

The extra \n is due to #1346.
But there also shouldn't be an extra space here.

Originally created by @bioball on GitHub (Dec 5, 2025). This code: ```bash echo " " | pkl format - | jq -Rs . ``` Produces: ```json " \n\n" ``` The extra `\n` is due to #1346. But there also shouldn't be an extra space here.
adam added the bug label 2025-12-30 01:23:54 +01:00
adam closed this issue 2025-12-30 01:23:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#370