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

Diagnostic span labels break too early if they span multiple lines #602

Open
mark-koch opened this issue Oct 29, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@mark-koch
Copy link
Collaborator

mark-koch commented Oct 29, 2024

This is because textwrap.wrap takes the prefix indentation into account when deciding where to put linebreaks...

See e.g. https://github.com/CQCL/guppylang/pull/601/files#r1820535178

@mark-koch
Copy link
Collaborator Author

Also related to #556

@mark-koch mark-koch mentioned this issue Oct 29, 2024
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant