Skip to content

Conversation

@yunfachi
Copy link
Member

@yunfachi yunfachi commented Dec 15, 2025

Motivation

Multi-line warnings currently get extra spaces to align with the "evaluation warning: " prefix. However, sometimes it's necessary to display a large multi-line warning with custom formatting, and this padding is unnecessary. I think if a warning starts with a new line, it makes sense not to add padding to it.

Context

Before/After
image


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@yunfachi yunfachi requested a review from edolstra as a code owner December 15, 2025 12:38
Previously, multi-line warning messages were badly formatted due to added
spaces to align with the "evaluation warning: " prefix. Now, if a warning
message starts with a newline, indentation is skipped.
@yunfachi yunfachi force-pushed the feat/builtins-warn-noIndent branch from 8c7374a to cacb623 Compare December 15, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant