Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(graphical): prevent leading newline when no link/code #418

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

unbyte
Copy link

@unbyte unbyte commented Jan 8, 2025

#358 introduced a new behavior: if a diagnostic has no code, the rendered report will contain a leading newline.

I'm not sure if this was an intentional change or an unintended side effect, but as a long-time miette user, I wouldn't expect my rendered report to include an extra leading newline - whether I'm outputting to the terminal, displaying in web page, or running snapshot tests. So I opened this PR.

Please let me know if I've misunderstood anything.

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